pub trait Loader {
// Required methods
fn is_resolution_enabled(&self) -> bool;
fn is_collision_allowed(&self) -> bool;
fn skip_macro_resolution(&mut self) -> Result<&mut Self>;
fn mode(&mut self, mode: LoaderMode) -> Result<&mut Self>;
fn allow_collisions(&mut self) -> Result<&mut Self>;
fn read(&self) -> Result<Value>;
// Provided methods
fn macro_resolution(&self, module: &Value) -> Result<Value> { ... }
fn load(&self) -> Result<Value> { ... }
fn merge_into(&self, left: &mut Value, right: &Value) -> Result<()> { ... }
}
Expand description
LoaderInterface defines the shared interface for loaders
Required Methods§
fn is_resolution_enabled(&self) -> bool
fn is_collision_allowed(&self) -> bool
fn skip_macro_resolution(&mut self) -> Result<&mut Self>
fn mode(&mut self, mode: LoaderMode) -> Result<&mut Self>
fn allow_collisions(&mut self) -> Result<&mut Self>
fn read(&self) -> Result<Value>
Provided Methods§
fn macro_resolution(&self, module: &Value) -> Result<Value>
fn load(&self) -> Result<Value>
fn merge_into(&self, left: &mut Value, right: &Value) -> Result<()>
Object Safety§
This trait is not object safe.