pub enum ConfigurationPath {
Absolute,
Relative,
}
Expand description
Represents a configuration path.
Variants§
Implementations§
Source§impl 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
Trait Implementations§
Source§impl Clone for ConfigurationPath
impl Clone for ConfigurationPath
Source§fn clone(&self) -> ConfigurationPath
fn clone(&self) -> ConfigurationPath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConfigurationPath
impl Debug for ConfigurationPath
Source§impl PartialEq for ConfigurationPath
impl PartialEq for ConfigurationPath
impl Copy for ConfigurationPath
impl StructuralPartialEq for ConfigurationPath
Auto Trait Implementations§
impl Freeze for ConfigurationPath
impl RefUnwindSafe for ConfigurationPath
impl Send for ConfigurationPath
impl Sync for ConfigurationPath
impl Unpin for ConfigurationPath
impl UnwindSafe for ConfigurationPath
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