pub trait SourceFileExt: IsA<File> + 'static {
Show 17 methods
// Provided methods
fn check_file_on_disk(&self) { ... }
fn compression_type(&self) -> CompressionType { ... }
fn encoding(&self) -> Encoding { ... }
fn location(&self) -> File { ... }
fn newline_type(&self) -> NewlineType { ... }
fn is_deleted(&self) -> bool { ... }
fn is_externally_modified(&self) -> bool { ... }
fn is_local(&self) -> bool { ... }
fn is_readonly(&self) -> bool { ... }
fn set_location(&self, location: Option<&impl IsA<File>>) { ... }
fn set_mount_operation_factory<P: Fn(&File) -> MountOperation + 'static>(
&self,
callback: P,
) { ... }
fn is_read_only(&self) -> bool { ... }
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_location_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_newline_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_read_only_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Provided Methods§
fn check_file_on_disk(&self)
fn compression_type(&self) -> CompressionType
fn encoding(&self) -> Encoding
fn location(&self) -> File
fn newline_type(&self) -> NewlineType
fn is_deleted(&self) -> bool
fn is_externally_modified(&self) -> bool
fn is_local(&self) -> bool
fn is_readonly(&self) -> bool
fn set_location(&self, location: Option<&impl IsA<File>>)
fn set_mount_operation_factory<P: Fn(&File) -> MountOperation + 'static>( &self, callback: P, )
fn is_read_only(&self) -> bool
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_location_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_newline_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_read_only_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.