[][src]Struct serde_pointer::Pointer

pub struct Pointer { /* fields omitted */ }

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]

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?

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]

impl Debug for Pointer[src]

impl FromStr for Pointer[src]

type Err = ParseError

The associated error which can be returned from parsing.

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]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]