pub struct ConfigPath {
pub segments: Vec<ConfigPathSegment>,
}Fields§
§segments: Vec<ConfigPathSegment>Implementations§
Source§impl ConfigPath
impl ConfigPath
pub fn root() -> Self
pub fn field(name: impl Into<String>) -> Self
pub fn from_fields<I, S>(fields: I) -> Self
pub fn push_field(&mut self, name: impl Into<String>) -> &mut Self
pub fn push_index(&mut self, index: usize) -> &mut Self
pub fn push_key(&mut self, name: impl Into<String>) -> &mut Self
pub fn render(&self) -> String
pub fn parse_rendered(rendered: &str) -> Result<Self, String>
pub fn normalize_builtin_layout(&self) -> Self
Trait Implementations§
Source§impl Clone for ConfigPath
impl Clone for ConfigPath
Source§fn clone(&self) -> ConfigPath
fn clone(&self) -> ConfigPath
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 moreSource§impl Debug for ConfigPath
impl Debug for ConfigPath
Source§impl Default for ConfigPath
impl Default for ConfigPath
Source§fn default() -> ConfigPath
fn default() -> ConfigPath
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigPath
impl<'de> Deserialize<'de> for ConfigPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConfigPath
Source§impl Hash for ConfigPath
impl Hash for ConfigPath
Source§impl Ord for ConfigPath
impl Ord for ConfigPath
Source§fn cmp(&self, other: &ConfigPath) -> Ordering
fn cmp(&self, other: &ConfigPath) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConfigPath
impl PartialEq for ConfigPath
Source§impl PartialOrd for ConfigPath
impl PartialOrd for ConfigPath
Source§impl Serialize for ConfigPath
impl Serialize for ConfigPath
impl StructuralPartialEq for ConfigPath
Auto Trait Implementations§
impl Freeze for ConfigPath
impl RefUnwindSafe for ConfigPath
impl Send for ConfigPath
impl Sync for ConfigPath
impl Unpin for ConfigPath
impl UnsafeUnpin for ConfigPath
impl UnwindSafe for ConfigPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.