Struct barkml::StandardLoader
source · pub struct StandardLoader { /* private fields */ }
Expand description
Loader can be used to load a single or directory of configuration files with user control
Implementations§
Trait Implementations§
source§impl Default for StandardLoader
impl Default for StandardLoader
source§impl Loader for StandardLoader
impl Loader for StandardLoader
source§fn allow_collisions(&mut self) -> Result<&mut Self>
fn allow_collisions(&mut self) -> Result<&mut Self>
When merging or appending multiple files together tell the loader to allow collisions and overwrite the first found one with the next
source§fn read(&self) -> Result<Value>
fn read(&self) -> Result<Value>
Load all the configuration files and return everything as a single module
fn is_resolution_enabled(&self) -> bool
fn is_collision_allowed(&self) -> bool
fn skip_macro_resolution(&mut self) -> Result<&mut Self>
fn macro_resolution(&self, module: &Value) -> Result<Value>
fn load(&self) -> Result<Value>
fn merge_into(&self, left: &mut Value, right: &Value) -> Result<()>
Auto Trait Implementations§
impl Freeze for StandardLoader
impl RefUnwindSafe for StandardLoader
impl Send for StandardLoader
impl Sync for StandardLoader
impl Unpin for StandardLoader
impl UnwindSafe for StandardLoader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more