Struct config::ConfigurationPath
source · [−]pub struct ConfigurationPath;Expand description
Represents a configuration path.
Implementations
sourceimpl ConfigurationPath
impl ConfigurationPath
sourcepub fn key_delimiter() -> &'static str
pub fn key_delimiter() -> &'static str
Gets the key delimiter used in configuration paths.
sourcepub fn combine(segments: &[&str]) -> String
pub fn combine(segments: &[&str]) -> String
Combines the specified segments into one path.
Arguments
segments- The segments to combine into a path
sourcepub fn section_key(path: &str) -> &str
pub fn section_key(path: &str) -> &str
sourcepub fn parent_path(path: &str) -> &str
pub fn parent_path(path: &str) -> &str
Extracts the path corresponding to the parent node for a given path.
Arguments
path- The path to extract the parent path from
Auto Trait Implementations
impl RefUnwindSafe for ConfigurationPath
impl Send for ConfigurationPath
impl Sync for ConfigurationPath
impl Unpin for ConfigurationPath
impl UnwindSafe for ConfigurationPath
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more