Struct Alt10

Source
pub struct Alt10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> { /* private fields */ }

Trait Implementations§

Source§

impl<'a, I: ?Sized + Sequence, O, E: ParserError, P1, T1, P2, T2, P3, T3, P4, T4, P5, T5, P6, T6, P7, T7, P8, T8, P9, T9, P10, T10> Parser<'a, I, O, E, Alt10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> for Alt<(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)>
where P1: Parser<'a, I, O, E, T1>, P2: Parser<'a, I, O, E, T2>, P3: Parser<'a, I, O, E, T3>, P4: Parser<'a, I, O, E, T4>, P5: Parser<'a, I, O, E, T5>, P6: Parser<'a, I, O, E, T6>, P7: Parser<'a, I, O, E, T7>, P8: Parser<'a, I, O, E, T8>, P9: Parser<'a, I, O, E, T9>, P10: Parser<'a, I, O, E, T10>,

Source§

fn fab(&self, input: &mut &'a I) -> Result<O, E>

Parses the input. This method advances the input reference to the remaining unparsed input. The method is named “fab” instead of “parse” to avoid conflicts with the “parse” method of &str.
Source§

fn fab_value<V: Clone>(self, value: V) -> Value<Self, V, I, O, E>
where Self: Sized,

Returns a parser that replaces the output of the underlying parser with V.
Source§

fn fab_map<F>(self, func: F) -> ParserMap<Self, I, O, E, F>
where Self: Sized,

This creates a Map parser that applies the function to the output of the underlying parser.
Source§

fn fab_try_map<F>(self, func: F) -> ParserTryMap<Self, I, O, E, F>
where Self: Sized,

This parser first maps the input, and if the result is Option::Some or Result::Ok, it unwraps the input. Othewise, the parser fails.
Source§

fn fab_repeat(self) -> Repeat<Self, I, O, E, fn(&mut Vec<O>, O), Vec<O>>
where Self: Sized, O: Clone,

Repeats the underlying parser, returning the results in a Vec. This parser will accept any number of repetitions, including 0. Read more

Auto Trait Implementations§

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Freeze for Alt10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> RefUnwindSafe for Alt10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Send for Alt10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
where T1: Send, T2: Send, T3: Send, T4: Send, T5: Send, T6: Send, T7: Send, T8: Send, T9: Send, T10: Send,

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Sync for Alt10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
where T1: Sync, T2: Sync, T3: Sync, T4: Sync, T5: Sync, T6: Sync, T7: Sync, T8: Sync, T9: Sync, T10: Sync,

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Unpin for Alt10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
where T1: Unpin, T2: Unpin, T3: Unpin, T4: Unpin, T5: Unpin, T6: Unpin, T7: Unpin, T8: Unpin, T9: Unpin, T10: Unpin,

§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> UnwindSafe for Alt10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

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, 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.