Struct serde_pointer::Pointer
source · pub struct Pointer { /* private fields */ }Expand description
Represents a pointer to the data as defined in the RFC6901 - the JSON Pointer specification.
Implementations§
source§impl Pointer
impl Pointer
pub fn push(&mut self, step: Step) -> &mut Self
pub fn pop(&mut self) -> Option<Step>
pub fn insert(&mut self, index: usize, step: Step)
pub fn remove(&mut self, index: usize) -> Step
sourcepub fn traverse<'a>(&self, val: &'a Value) -> Option<ValuePointer<'a>>
pub fn traverse<'a>(&self, val: &'a Value) -> Option<ValuePointer<'a>>
Traverses the provided value and finds the data this pointer points to in it, if any.
Trait Implementations§
source§impl IntoIterator for Pointer
impl IntoIterator for Pointer
source§impl PartialEq for Pointer
impl PartialEq for Pointer
source§impl PartialOrd for Pointer
impl PartialOrd for Pointer
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 Pointer
impl StructuralPartialEq for Pointer
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnwindSafe for Pointer
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)