Skip to main content

SourceFileExt

Trait SourceFileExt 

Source
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§

Source

fn check_file_on_disk(&self)

Source

fn compression_type(&self) -> CompressionType

Source

fn encoding(&self) -> Encoding

Source

fn location(&self) -> File

Source

fn newline_type(&self) -> NewlineType

Source

fn is_deleted(&self) -> bool

Source

fn is_externally_modified(&self) -> bool

Source

fn is_local(&self) -> bool

Source

fn is_readonly(&self) -> bool

Source

fn set_location(&self, location: Option<&impl IsA<File>>)

Source

fn set_mount_operation_factory<P: Fn(&File) -> MountOperation + 'static>( &self, callback: P, )

Source

fn is_read_only(&self) -> bool

Source

fn connect_compression_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_encoding_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_location_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_newline_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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.

Implementors§