pub struct ConfigFile { /* private fields */ }Implementations§
Source§impl ConfigFile
impl ConfigFile
pub fn load( path: impl Into<PathBuf>, fallback: &str, ) -> Result<Self, ConfigFileError>
pub fn path(&self) -> &Path
pub fn document(&self) -> &ConfigDocument
pub fn is_materialized(&self) -> bool
pub fn write( &self, edited: &EditedConfig, ) -> Result<ConfigWriteReceipt, ConfigFileError>
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnsafeUnpin for ConfigFile
impl UnwindSafe for ConfigFile
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