[][src]Struct dangerous::error::ExpectedValid

#[must_use = "error must be handled"]pub struct ExpectedValid<'i> { /* fields omitted */ }

An error representing a failed requirement for a valid Input.

Implementations

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

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

The Input provided in the context when the error occurred.

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

The ExpectedContext around the error.

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

The specific part of the Input that did not meet the requirement.

#[must_use]pub fn expected(&self) -> &'static str[src]

A description of what was expected.

Trait Implementations

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

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

impl<'i> DisplayBase for ExpectedValid<'i>[src]

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

impl<'i> From<ExpectedValid<'i>> for Fatal[src]

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

impl<'i> NoInteriorMut for ExpectedValid<'i>[src]

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

Auto Trait Implementations

impl<'i> RefUnwindSafe for ExpectedValid<'i>[src]

impl<'i> Send for ExpectedValid<'i>[src]

impl<'i> Sync for ExpectedValid<'i>[src]

impl<'i> Unpin for ExpectedValid<'i>[src]

impl<'i> UnwindSafe for ExpectedValid<'i>[src]

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> Guarded for T where
    T: NoInteriorMut
[src]

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

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.