Trait sourceview4::prelude::FileSaverExt
source · pub trait FileSaverExt: IsA<FileSaver> + Sealed + 'static {
Show 15 methods
// Provided methods
fn buffer(&self) -> Option<Buffer> { ... }
fn compression_type(&self) -> CompressionType { ... }
fn encoding(&self) -> Option<Encoding> { ... }
fn file(&self) -> Option<File> { ... }
fn flags(&self) -> FileSaverFlags { ... }
fn location(&self) -> Option<File> { ... }
fn newline_type(&self) -> NewlineType { ... }
fn set_compression_type(&self, compression_type: CompressionType) { ... }
fn set_encoding(&self, encoding: Option<&Encoding>) { ... }
fn set_flags(&self, flags: FileSaverFlags) { ... }
fn set_newline_type(&self, newline_type: NewlineType) { ... }
fn connect_compression_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_encoding_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_flags_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_newline_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn compression_type(&self) -> CompressionType
fn compression_type(&self) -> CompressionType
Returns
the compression type.
sourcefn flags(&self) -> FileSaverFlags
fn flags(&self) -> FileSaverFlags
Returns
the flags.
sourcefn newline_type(&self) -> NewlineType
fn newline_type(&self) -> NewlineType
Returns
the newline type.
sourcefn set_compression_type(&self, compression_type: CompressionType)
fn set_compression_type(&self, compression_type: CompressionType)
Sets the compression type. By default the compression type is taken from the
File
.
compression_type
the new compression type.
sourcefn set_encoding(&self, encoding: Option<&Encoding>)
fn set_encoding(&self, encoding: Option<&Encoding>)
sourcefn set_flags(&self, flags: FileSaverFlags)
fn set_flags(&self, flags: FileSaverFlags)
flags
the new flags.
sourcefn set_newline_type(&self, newline_type: NewlineType)
fn set_newline_type(&self, newline_type: NewlineType)
Sets the newline type. By default the newline type is taken from the
File
.
newline_type
the new newline type.
fn connect_compression_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_encoding_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_flags_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_newline_type_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Object Safety§
This trait is not object safe.