Enum sonic_rs::PointerNode
source · pub enum PointerNode {
Key(FastStr),
Index(usize),
}Expand description
Represents a node in a json pointer path.
Variants§
Trait Implementations§
source§impl Clone for PointerNode
impl Clone for PointerNode
source§fn clone(&self) -> PointerNode
fn clone(&self) -> PointerNode
Returns a copy of the value. Read more
1.0.0 · 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 PointerNode
impl Debug for PointerNode
source§impl From<&FastStr> for PointerNode
impl From<&FastStr> for PointerNode
source§impl From<&str> for PointerNode
impl From<&str> for PointerNode
source§impl From<&usize> for PointerNode
impl From<&usize> for PointerNode
source§impl From<FastStr> for PointerNode
impl From<FastStr> for PointerNode
source§impl From<usize> for PointerNode
impl From<usize> for PointerNode
source§impl Ord for PointerNode
impl Ord for PointerNode
source§fn cmp(&self, other: &PointerNode) -> Ordering
fn cmp(&self, other: &PointerNode) -> 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 PointerNode
impl PartialEq for PointerNode
source§fn eq(&self, other: &PointerNode) -> bool
fn eq(&self, other: &PointerNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PointerNode
impl PartialOrd for PointerNode
source§fn partial_cmp(&self, other: &PointerNode) -> Option<Ordering>
fn partial_cmp(&self, other: &PointerNode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for PointerNode
impl StructuralPartialEq for PointerNode
Auto Trait Implementations§
impl !Freeze for PointerNode
impl RefUnwindSafe for PointerNode
impl Send for PointerNode
impl Sync for PointerNode
impl Unpin for PointerNode
impl UnwindSafe for PointerNode
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