pub enum ValuePathSegment {
Field(String),
Index(usize),
VariantPayload,
OptionInner,
ResultOk,
ResultErr,
UnionBody,
MapKey(usize),
MapValue(usize),
}Expand description
A path segment inside a SchemaValue tree.
Variants§
Field(String)
Index(usize)
VariantPayload
OptionInner
ResultOk
ResultErr
UnionBody
MapKey(usize)
MapValue(usize)
Trait Implementations§
Source§impl Clone for ValuePathSegment
impl Clone for ValuePathSegment
Source§fn clone(&self) -> ValuePathSegment
fn clone(&self) -> ValuePathSegment
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 ValuePathSegment
impl Debug for ValuePathSegment
Source§impl Display for ValuePathSegment
impl Display for ValuePathSegment
impl Eq for ValuePathSegment
Source§impl PartialEq for ValuePathSegment
impl PartialEq for ValuePathSegment
impl StructuralPartialEq for ValuePathSegment
Auto Trait Implementations§
impl Freeze for ValuePathSegment
impl RefUnwindSafe for ValuePathSegment
impl Send for ValuePathSegment
impl Sync for ValuePathSegment
impl Unpin for ValuePathSegment
impl UnsafeUnpin for ValuePathSegment
impl UnwindSafe for ValuePathSegment
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