pub trait VfsExt: IsA<Vfs> + 'static {
// Provided methods
fn file_for_path(&self, path: impl AsRef<Path>) -> File { ... }
fn file_for_uri(&self, uri: &str) -> File { ... }
fn supported_uri_schemes(&self) -> Vec<GString> { ... }
fn is_active(&self) -> bool { ... }
fn parse_name(&self, parse_name: &str) -> File { ... }
fn register_uri_scheme(
&self,
scheme: &str,
uri_func: Option<Box_<dyn Fn(&Vfs, &str) -> Option<File> + 'static>>,
parse_name_func: Option<Box_<dyn Fn(&Vfs, &str) -> Option<File> + 'static>>,
) -> bool { ... }
fn unregister_uri_scheme(&self, scheme: &str) -> bool { ... }
}Provided Methods§
fn file_for_path(&self, path: impl AsRef<Path>) -> File
fn file_for_uri(&self, uri: &str) -> File
fn supported_uri_schemes(&self) -> Vec<GString>
fn is_active(&self) -> bool
fn parse_name(&self, parse_name: &str) -> File
fn register_uri_scheme( &self, scheme: &str, uri_func: Option<Box_<dyn Fn(&Vfs, &str) -> Option<File> + 'static>>, parse_name_func: Option<Box_<dyn Fn(&Vfs, &str) -> Option<File> + 'static>>, ) -> bool
fn unregister_uri_scheme(&self, scheme: &str) -> bool
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.