[−][src]Struct dangerous::error::ExpectedValue
An error representing a failed exact value requirement of Input
.
Implementations
impl<'i> ExpectedValue<'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 found(&self) -> Input<'i>
[src]
The Input
that was found.
pub fn expected(&self) -> Input<'i>
[src]
The Input
value that was expected.
Trait Implementations
impl<'i> Debug for ExpectedValue<'i>
[src]
impl<'i> Display for ExpectedValue<'i>
[src]
impl<'i> DisplayBase for ExpectedValue<'i>
[src]
impl<'i, S> From<ExpectedValue<'i>> for Expected<'i, S> where
S: ContextStackBuilder,
[src]
S: ContextStackBuilder,
pub fn from(err: ExpectedValue<'i>) -> Self
[src]
impl<'i> From<ExpectedValue<'i>> for Fatal
[src]
pub fn from(_: ExpectedValue<'i>) -> Self
[src]
impl<'i> From<ExpectedValue<'i>> for Invalid
[src]
pub fn from(err: ExpectedValue<'i>) -> Self
[src]
impl<'i> NoInteriorMut for ExpectedValue<'i>
[src]
impl<'i> ToRetryRequirement for ExpectedValue<'i>
[src]
pub fn to_retry_requirement(&self) -> Option<RetryRequirement>
[src]
pub fn is_fatal(&self) -> bool
[src]
Returns true
if the value could never match and false
if the matching
was incomplete.
Auto Trait Implementations
impl<'i> RefUnwindSafe for ExpectedValue<'i>
[src]
impl<'i> Send for ExpectedValue<'i>
[src]
impl<'i> Sync for ExpectedValue<'i>
[src]
impl<'i> Unpin for ExpectedValue<'i>
[src]
impl<'i> UnwindSafe for ExpectedValue<'i>
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Guarded for T where
T: NoInteriorMut,
[src]
T: NoInteriorMut,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,