pub struct ConfigLoader;Expand description
Configuration loader
Implementations§
Source§impl ConfigLoader
impl ConfigLoader
Sourcepub fn load_yaml(path: &Path) -> ConfigResult<LanguageConfig>
pub fn load_yaml(path: &Path) -> ConfigResult<LanguageConfig>
Load configuration from a YAML file
Sourcepub fn load_json(path: &Path) -> ConfigResult<LanguageConfig>
pub fn load_json(path: &Path) -> ConfigResult<LanguageConfig>
Load configuration from a JSON file
Sourcepub fn load(path: &Path) -> ConfigResult<LanguageConfig>
pub fn load(path: &Path) -> ConfigResult<LanguageConfig>
Load configuration from a file (auto-detect format)
Sourcepub fn load_directory(path: &Path) -> ConfigResult<ConfigRegistry>
pub fn load_directory(path: &Path) -> ConfigResult<ConfigRegistry>
Load all configurations from a directory
Auto Trait Implementations§
impl Freeze for ConfigLoader
impl RefUnwindSafe for ConfigLoader
impl Send for ConfigLoader
impl Sync for ConfigLoader
impl Unpin for ConfigLoader
impl UnwindSafe for ConfigLoader
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