pub enum OrElseTryError<ParseError, ElseError> {
Value(ValueError<ParseError>),
Else(ElseError),
}Expand description
Error while processing a variable or executing a fallible else.
Variants§
Value(ValueError<ParseError>)
The value couldn’t be processed.
Else(ElseError)
The else handler failed.
Trait Implementations§
Source§impl<ParseError, ElseError> Display for OrElseTryError<ParseError, ElseError>
impl<ParseError, ElseError> Display for OrElseTryError<ParseError, ElseError>
Source§impl<ParseError, ElseError> Error for OrElseTryError<ParseError, ElseError>
impl<ParseError, ElseError> Error for OrElseTryError<ParseError, ElseError>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<ParseError> From<OrParseError<ParseError>> for OrElseTryError<ParseError, ParseError>
impl<ParseError> From<OrParseError<ParseError>> for OrElseTryError<ParseError, ParseError>
Source§fn from(value: OrParseError<ParseError>) -> Self
fn from(value: OrParseError<ParseError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ParseError, ElseError> Freeze for OrElseTryError<ParseError, ElseError>
impl<ParseError, ElseError> RefUnwindSafe for OrElseTryError<ParseError, ElseError>where
ElseError: RefUnwindSafe,
ParseError: RefUnwindSafe,
impl<ParseError, ElseError> Send for OrElseTryError<ParseError, ElseError>
impl<ParseError, ElseError> Sync for OrElseTryError<ParseError, ElseError>
impl<ParseError, ElseError> Unpin for OrElseTryError<ParseError, ElseError>
impl<ParseError, ElseError> UnsafeUnpin for OrElseTryError<ParseError, ElseError>where
ElseError: UnsafeUnpin,
ParseError: UnsafeUnpin,
impl<ParseError, ElseError> UnwindSafe for OrElseTryError<ParseError, ElseError>where
ElseError: UnwindSafe,
ParseError: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more