[−][src]Struct dangerous::error::ExpectedValid
An error representing a failed requirement for a valid Input
.
Implementations
impl<'i> ExpectedValid<'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 span(&self) -> &'i Input
[src]
The specific part of the Input
that did not meet the requirement.
pub fn expected(&self) -> &'static str
[src]
A description of what was expected.
Trait Implementations
impl<'i> Clone for ExpectedValid<'i>
[src]
fn clone(&self) -> ExpectedValid<'i>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'i> Debug for ExpectedValid<'i>
[src]
impl<'i> Display for ExpectedValid<'i>
[src]
impl<'i, S> From<ExpectedValid<'i>> for Expected<'i, S> where
S: ContextStackBuilder,
[src]
S: ContextStackBuilder,
fn from(err: ExpectedValid<'i>) -> Self
[src]
impl<'i> From<ExpectedValid<'i>> for Invalid
[src]
fn from(err: ExpectedValid<'i>) -> Self
[src]
impl<'i> ToRetryRequirement for ExpectedValid<'i>
[src]
fn to_retry_requirement(&self) -> Option<RetryRequirement>
[src]
fn is_fatal(&self) -> bool
[src]
Auto Trait Implementations
impl<'i> RefUnwindSafe for ExpectedValid<'i>
impl<'i> Send for ExpectedValid<'i>
impl<'i> Sync for ExpectedValid<'i>
impl<'i> Unpin for ExpectedValid<'i>
impl<'i> UnwindSafe for ExpectedValid<'i>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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>,