[][src]Struct serde_path_to_error::Path

pub struct Path { /* fields omitted */ }

Path to the error value in the input, like dependencies.serde.typo1.

Use path.to_string() to get a string representation of the path with segments separated by periods, or use path.iter() to iterate over individual segments of the path.

Implementations

impl Path[src]

pub fn iter(&self) -> Segments<'_>

Notable traits for Segments<'a>

impl<'a> Iterator for Segments<'a> type Item = &'a Segment;
[src]

Returns an iterator with element type &Segment.

Trait Implementations

impl Clone for Path[src]

impl Debug for Path[src]

impl Display for Path[src]

impl<'a> IntoIterator for &'a Path[src]

type Item = &'a Segment

The type of the elements being iterated over.

type IntoIter = Segments<'a>

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

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.