[][src]Struct combine_proc_macro::input::Input

pub struct Input { /* fields omitted */ }

Methods

impl Input[src]

pub fn is_empty(&self) -> bool[src]

Returns true if the input contains no more tokens.

pub fn with_lookahead(
    self,
    k: usize
) -> BufferedStream<State<Input, SpanPosition>>
[src]

Wraps the input in a BufferedStream that supports lookahead grammars.

By default combine produces an LL(1) parser, unless the attempt combinator is used, so 1 is the recommended default value for k.

Trait Implementations

impl From<TokenStream> for Input[src]

impl From<TokenStream> for Input[src]

impl From<Input> for TokenStream[src]

impl StreamOnce for Input[src]

type Item = Token

The type of items which is yielded from this stream.

type Range = Self::Item

The type of a range of items yielded from this stream. Types which do not a have a way of yielding ranges of items should just use the Self::Item for this type. Read more

type Position = usize

Type which represents the position in a stream. Ord is required to allow parsers to determine which of two positions are further ahead. Read more

type Error = Error<Self::Item, Self::Range>

impl Positioned for Input[src]

impl DefaultPositioned for Input[src]

Auto Trait Implementations

impl !Send for Input

impl !Sync for Input

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]