Struct gluon_parser::Wrapper
[−]
[src]
pub struct Wrapper<'input: 'lexer, 'lexer> { /* fields omitted */ }
Trait Implementations
impl<'input: 'lexer, 'lexer> Clone for Wrapper<'input, 'lexer>
[src]
fn clone(&self) -> Wrapper<'input, 'lexer>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'input, 'lexer> StreamOnce for Wrapper<'input, 'lexer>
[src]
type Item = Token<&'input str>
The type of items which is yielded from this stream
type Range = Token<&'input str>
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 = Span<BytePos>
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
fn uncons(&mut self) -> Result<Token<&'input str>, Error<&'input str>>
Takes a stream and removes its first item, yielding the item and the rest of the elements Returns Err
if no element could be retrieved Read more
fn position(&self) -> Self::Position
Returns the current position of the stream