[][src]Struct dangerous::error::ExpectedValue

pub struct ExpectedValue<'i> { /* fields omitted */ }

An error representing a failed exact value requirement of Input.

Implementations

impl<'i> ExpectedValue<'i>[src]

pub fn input(&self) -> &'i Input[src]

The Input provided in the context when the error occurred.

pub fn context(&self) -> ExpectedContext[src]

The ExpectedContext around the error.

pub fn found(&self) -> &'i Input[src]

The Input that was found.

pub fn expected(&self) -> &Input[src]

The Input value that was expected.

pub fn is_fatal(&self) -> bool[src]

Returns true if the value could never match and true if the matching was incomplete.

Trait Implementations

impl<'i> Clone for ExpectedValue<'i>[src]

impl<'i> Debug for ExpectedValue<'i>[src]

impl<'i> Display for ExpectedValue<'i>[src]

impl<'i, S> From<ExpectedValue<'i>> for Expected<'i, S> where
    S: ContextStackBuilder
[src]

impl<'i> From<ExpectedValue<'i>> for Invalid[src]

impl<'i> ToRetryRequirement for ExpectedValue<'i>[src]

Auto Trait Implementations

impl<'i> RefUnwindSafe for ExpectedValue<'i>

impl<'i> Send for ExpectedValue<'i>

impl<'i> Sync for ExpectedValue<'i>

impl<'i> Unpin for ExpectedValue<'i>

impl<'i> UnwindSafe for ExpectedValue<'i>

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.