pub struct ConfigNamePathBuf(/* private fields */);
Expand description
Dotted config name path.
Implementations§
Source§impl ConfigNamePathBuf
impl ConfigNamePathBuf
Sourcepub fn root() -> Self
pub fn root() -> Self
Creates an empty path pointing to the root table.
This isn’t a valid TOML key expression, but provided for convenience.
Sourcepub fn is_root(&self) -> bool
pub fn is_root(&self) -> bool
Returns true if the path is empty (i.e. pointing to the root table.)
Sourcepub fn starts_with(&self, base: impl AsRef<[Key]>) -> bool
pub fn starts_with(&self, base: impl AsRef<[Key]>) -> bool
Returns true if the base
is a prefix of this path.
Sourcepub fn components(&self) -> Iter<'_, Key>
pub fn components(&self) -> Iter<'_, Key>
Returns iterator of path components (or keys.)
Trait Implementations§
Source§impl AsRef<[Key]> for ConfigNamePathBuf
impl AsRef<[Key]> for ConfigNamePathBuf
Source§impl Clone for ConfigNamePathBuf
impl Clone for ConfigNamePathBuf
Source§fn clone(&self) -> ConfigNamePathBuf
fn clone(&self) -> ConfigNamePathBuf
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConfigNamePathBuf
impl Debug for ConfigNamePathBuf
Source§impl Display for ConfigNamePathBuf
impl Display for ConfigNamePathBuf
Source§impl From<&ConfigNamePathBuf> for ConfigNamePathBuf
impl From<&ConfigNamePathBuf> for ConfigNamePathBuf
Source§fn from(value: &ConfigNamePathBuf) -> Self
fn from(value: &ConfigNamePathBuf) -> Self
Converts to this type from the input type.
Source§impl<K: Into<Key>> FromIterator<K> for ConfigNamePathBuf
impl<K: Into<Key>> FromIterator<K> for ConfigNamePathBuf
Source§fn from_iter<I: IntoIterator<Item = K>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = K>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl FromStr for ConfigNamePathBuf
impl FromStr for ConfigNamePathBuf
Source§impl Hash for ConfigNamePathBuf
impl Hash for ConfigNamePathBuf
Source§impl Ord for ConfigNamePathBuf
impl Ord for ConfigNamePathBuf
Source§fn cmp(&self, other: &ConfigNamePathBuf) -> Ordering
fn cmp(&self, other: &ConfigNamePathBuf) -> Ordering
1.21.0 · 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 ConfigNamePathBuf
impl PartialEq for ConfigNamePathBuf
Source§impl PartialOrd for ConfigNamePathBuf
impl PartialOrd for ConfigNamePathBuf
Source§impl ToConfigNamePath for &ConfigNamePathBuf
impl ToConfigNamePath for &ConfigNamePathBuf
Source§type Output = &ConfigNamePathBuf
type Output = &ConfigNamePathBuf
Path type to be converted from
Self
.Source§fn into_name_path(self) -> Self::Output
fn into_name_path(self) -> Self::Output
Converts this object into a dotted config name path.
Source§impl ToConfigNamePath for ConfigNamePathBuf
impl ToConfigNamePath for ConfigNamePathBuf
Source§type Output = ConfigNamePathBuf
type Output = ConfigNamePathBuf
Path type to be converted from
Self
.Source§fn into_name_path(self) -> Self::Output
fn into_name_path(self) -> Self::Output
Converts this object into a dotted config name path.
impl Eq for ConfigNamePathBuf
impl StructuralPartialEq for ConfigNamePathBuf
Auto Trait Implementations§
impl Freeze for ConfigNamePathBuf
impl RefUnwindSafe for ConfigNamePathBuf
impl Send for ConfigNamePathBuf
impl Sync for ConfigNamePathBuf
impl Unpin for ConfigNamePathBuf
impl UnwindSafe for ConfigNamePathBuf
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
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more