pub trait ModuleExt {
// Required method
fn add_item(&mut self, item: Item) -> &mut Self;
// Provided methods
fn add_item_by_glob<F: Fn(&Path) -> Item>(
&mut self,
pattern: &str,
f: F,
) -> Result<&mut Self, PatternError> { ... }
fn add_include_str_by_glob<F: Fn(&Path) -> Ident>(
&mut self,
pattern: &str,
f: F,
) -> Result<&mut Self, PatternError> { ... }
fn add_include_byte_by_glob<F: Fn(&Path) -> Ident>(
&mut self,
pattern: &str,
f: F,
) -> Result<&mut Self, PatternError> { ... }
}
Required Methods§
Provided Methods§
fn add_item_by_glob<F: Fn(&Path) -> Item>( &mut self, pattern: &str, f: F, ) -> Result<&mut Self, PatternError>
fn add_include_str_by_glob<F: Fn(&Path) -> Ident>( &mut self, pattern: &str, f: F, ) -> Result<&mut Self, PatternError>
fn add_include_byte_by_glob<F: Fn(&Path) -> Ident>( &mut self, pattern: &str, f: F, ) -> Result<&mut Self, PatternError>
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.