pub struct FieldPath(/* private fields */);Expand description
A field path represented as a sequence of field names.
This struct is used to represent paths to fields in nested structures, where each segment is a field name.
Implementations§
Source§impl FieldPath
impl FieldPath
Sourcepub fn child(&self, segment: String) -> Self
pub fn child(&self, segment: String) -> Self
Creates a new path by appending a segment to this path.
Sourcepub fn starts_with(&self, other: &FieldPath) -> bool
pub fn starts_with(&self, other: &FieldPath) -> bool
Checks if this path starts with another path.
Sourcepub fn as_dotted_key(&self) -> String
pub fn as_dotted_key(&self) -> String
Converts this path to a TOML dotted key string.
Trait Implementations§
impl Eq for FieldPath
impl StructuralPartialEq for FieldPath
Auto Trait Implementations§
impl Freeze for FieldPath
impl RefUnwindSafe for FieldPath
impl Send for FieldPath
impl Sync for FieldPath
impl Unpin for FieldPath
impl UnsafeUnpin for FieldPath
impl UnwindSafe for FieldPath
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> 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.