Skip to main content

Tuple3Error

Enum Tuple3Error 

Source
pub enum Tuple3Error<T0: Parse, T1: Parse, T2: Parse> {
    T0(ParserError<T0>),
    T1(ParserError<T1>),
    T2(ParserError<T2>),
}

Variants§

Trait Implementations§

Source§

impl<T0: Parse, T1: Parse, T2: Parse> Debug for Tuple3Error<T0, T1, T2>

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T0: Parse, T1: Parse, T2: Parse> ParseError for Tuple3Error<T0, T1, T2>

Source§

fn is_fatal(&self) -> bool

Returns whether this error is fatal
Source§

fn pos(&self) -> Option<AstPos>

Returns the position at which this error occurred.
Source§

fn to_app_error(&self, parser: &Parser) -> AppError

Converts this error type to an AppError

Auto Trait Implementations§

§

impl<T0, T1, T2> Freeze for Tuple3Error<T0, T1, T2>

§

impl<T0, T1, T2> RefUnwindSafe for Tuple3Error<T0, T1, T2>
where <T0 as Parse>::Error: RefUnwindSafe, <T1 as Parse>::Error: RefUnwindSafe, <T2 as Parse>::Error: RefUnwindSafe,

§

impl<T0, T1, T2> Send for Tuple3Error<T0, T1, T2>
where <T0 as Parse>::Error: Send, <T1 as Parse>::Error: Send, <T2 as Parse>::Error: Send,

§

impl<T0, T1, T2> Sync for Tuple3Error<T0, T1, T2>
where <T0 as Parse>::Error: Sync, <T1 as Parse>::Error: Sync, <T2 as Parse>::Error: Sync,

§

impl<T0, T1, T2> Unpin for Tuple3Error<T0, T1, T2>

§

impl<T0, T1, T2> UnsafeUnpin for Tuple3Error<T0, T1, T2>

§

impl<T0, T1, T2> UnwindSafe for Tuple3Error<T0, T1, T2>
where <T0 as Parse>::Error: UnwindSafe, <T1 as Parse>::Error: UnwindSafe, <T2 as Parse>::Error: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<R, T> FromRecursiveRoot<R> for T
where T: From<R>,

Source§

fn from_recursive_root(root: R, _parser: &mut Parser) -> T

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<R> IntoRecursiveRoot<R> for R

Source§

fn into_recursive_root(self, _parser: &mut Parser) -> R

Source§

impl<T, R> ParsableFrom<RecursiveWrapper<T, R>> for T

Source§

fn from_parsable(wrapper: RecursiveWrapper<T, R>) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<R> TryFromRecursiveRoot<R> for R

Source§

fn try_from_recursive_root(root: R, _parser: &mut Parser) -> Option<R>

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.