TupleParser4

Struct TupleParser4 

Source
pub struct TupleParser4<T1, T2, T3, T4> { /* private fields */ }
Expand description

Parser implementation for a tuple of a specific size

Trait Implementations§

Source§

impl<T1, T2, T3, T4> Default for TupleParser4<T1, T2, T3, T4>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<Ctx: Clone, T1: Parser<Ctx>, T2: Parser<Ctx>, T3: Parser<Ctx>, T4: Parser<Ctx>> Parser<Ctx> for TupleParser4<T1, T2, T3, T4>

Source§

type Value = (<T1 as Parser<Ctx>>::Value, <T2 as Parser<Ctx>>::Value, <T3 as Parser<Ctx>>::Value, <T4 as Parser<Ctx>>::Value)

The type that this parser will parse the input stream into.
Source§

fn parse<'a>( &self, input: TokenStream<'a>, ctx: Ctx, ) -> ParseResult<'a, Self::Value>

Parsers the beginning of the token stream into a Value. Read more
Source§

fn complete<'a>(&self, input: TokenStream<'a>, ctx: Ctx) -> CompletionResult<'a>

Constructs the completion suggestions for the last token of the input stream Read more

Auto Trait Implementations§

§

impl<T1, T2, T3, T4> Freeze for TupleParser4<T1, T2, T3, T4>

§

impl<T1, T2, T3, T4> RefUnwindSafe for TupleParser4<T1, T2, T3, T4>

§

impl<T1, T2, T3, T4> Send for TupleParser4<T1, T2, T3, T4>
where T1: Send, T2: Send, T3: Send, T4: Send,

§

impl<T1, T2, T3, T4> Sync for TupleParser4<T1, T2, T3, T4>
where T1: Sync, T2: Sync, T3: Sync, T4: Sync,

§

impl<T1, T2, T3, T4> Unpin for TupleParser4<T1, T2, T3, T4>
where T1: Unpin, T2: Unpin, T3: Unpin, T4: Unpin,

§

impl<T1, T2, T3, T4> UnwindSafe for TupleParser4<T1, T2, T3, T4>
where T1: UnwindSafe, T2: UnwindSafe, T3: UnwindSafe, T4: 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<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> ParsableTransformation<Box<T>> for T

Source§

type Input = T

The type that will be transformed by the implementation if this trait (Self::Input -> O).
Source§

fn transform( input: <T as ParsableTransformation<Box<T>>>::Input, ) -> Result<Box<T>, ParseError<'static>>

Performs the transformation.
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<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.