[−][src]Struct combine_proc_macro::input::Input
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]
self,
k: usize
) -> BufferedStream<State<Input, SpanPosition>>
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]
fn from(stream: TokenStreamBuiltin) -> Input
[src]
impl From<TokenStream> for Input
[src]
fn from(stream: TokenStream) -> Input
[src]
impl From<Input> for TokenStream
[src]
fn from(input: Input) -> 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>
fn uncons(&mut self) -> Result<Self::Item, StreamErrorFor<Self>>
[src]
fn is_partial(&self) -> bool
[src]
impl Positioned for Input
[src]
impl DefaultPositioned for Input
[src]
type Positioner = SpanPosition
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,