[−][src]Struct serde_pointer::Pointer
Represents a pointer to the data as defined in the RFC6901 - the JSON Pointer specification.
Methods
impl Pointer
[src]
pub fn push(&mut self, step: Step) -> &mut Self
[src]
pub fn pop(&mut self) -> Option<Step>
[src]
pub fn insert(&mut self, index: usize, step: Step)
[src]
pub fn remove(&mut self, index: usize) -> Step
[src]
pub fn traverse<'a>(&self, val: &'a Value) -> Option<ValuePointer<'a>>
[src]
Traverses the provided value and finds the data this pointer points to in it, if any.
pub fn traverse_mut<'a>(
&self,
val: &'a mut Value
) -> Option<ValuePointerMut<'a>>
[src]
&self,
val: &'a mut Value
) -> Option<ValuePointerMut<'a>>
pub fn find<'a>(&self, val: &'a Value) -> Option<&'a Value>
[src]
A simple override of traverse()
that directly exposes the found value, if any.
pub fn find_mut<'a>(&self, val: &'a mut Value) -> Option<&'a mut Value>
[src]
Trait Implementations
impl From<Vec<Step>> for Pointer
[src]
impl Into<Vec<Step>> for Pointer
[src]
impl IntoIterator for Pointer
[src]
type Item = Step
The type of the elements being iterated over.
type IntoIter = IntoIter<Step>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Clone for Pointer
[src]
impl Default for Pointer
[src]
impl Eq for Pointer
[src]
impl PartialEq<Pointer> for Pointer
[src]
impl PartialOrd<Pointer> for Pointer
[src]
fn partial_cmp(&self, other: &Pointer) -> Option<Ordering>
[src]
fn lt(&self, other: &Pointer) -> bool
[src]
fn le(&self, other: &Pointer) -> bool
[src]
fn gt(&self, other: &Pointer) -> bool
[src]
fn ge(&self, other: &Pointer) -> bool
[src]
impl Debug for Pointer
[src]
impl FromStr for Pointer
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl StructuralPartialEq for Pointer
[src]
impl StructuralEq for Pointer
[src]
Auto Trait Implementations
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnwindSafe for Pointer
impl RefUnwindSafe for Pointer
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,