pub struct Config { /* private fields */ }Implementations§
Source§impl Config
impl Config
pub fn from_str(string: &str, parent: &Path) -> Result<Config, String>
pub fn read_file_path(file_name: &Path) -> Result<Config>
pub fn get_library<'a>(&'a self, name: &str) -> Option<&'a LibraryConfig>
pub fn iter_libraries(&self) -> impl Iterator<Item = &LibraryConfig>
Sourcepub fn append(&mut self, config: &Config, messages: &mut dyn MessageHandler)
pub fn append(&mut self, config: &Config, messages: &mut dyn MessageHandler)
Append another config to self
In case of conflict the appended config takes precedence
Sourcepub fn load_external_config(&mut self, messages: &mut dyn MessageHandler)
pub fn load_external_config(&mut self, messages: &mut dyn MessageHandler)
Load all external configuration
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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