pub enum CommentPathSegment {
Key(String),
Index(usize),
}Expand description
One segment of a path into the parsed YAML structure.
Variants§
Trait Implementations§
Source§impl Clone for CommentPathSegment
impl Clone for CommentPathSegment
Source§fn clone(&self) -> CommentPathSegment
fn clone(&self) -> CommentPathSegment
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 CommentPathSegment
impl Debug for CommentPathSegment
Source§impl PartialEq for CommentPathSegment
impl PartialEq for CommentPathSegment
Source§fn eq(&self, other: &CommentPathSegment) -> bool
fn eq(&self, other: &CommentPathSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CommentPathSegment
impl StructuralPartialEq for CommentPathSegment
Auto Trait Implementations§
impl Freeze for CommentPathSegment
impl RefUnwindSafe for CommentPathSegment
impl Send for CommentPathSegment
impl Sync for CommentPathSegment
impl Unpin for CommentPathSegment
impl UnsafeUnpin for CommentPathSegment
impl UnwindSafe for CommentPathSegment
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.