pub struct TokenStream<'t> { /* private fields */ }Implementations§
Source§impl<'t> TokenStream<'t>
impl<'t> TokenStream<'t>
Trait Implementations§
Source§impl Parse for TokenStream<'_>
impl Parse for TokenStream<'_>
Source§impl<'input> ParseElem<'input> for TokenStream<'input>
impl<'input> ParseElem<'input> for TokenStream<'input>
Source§type Element = &'input Token<'input>
type Element = &'input Token<'input>
Type of a single atomic element of the input, for example a character or token
Source§fn parse_elem(&'input self, pos: usize) -> RuleResult<Self::Element>
fn parse_elem(&'input self, pos: usize) -> RuleResult<Self::Element>
Get the element at
pos, or Failed if past end of input.Source§impl<'input> ParseLiteral for TokenStream<'input>
impl<'input> ParseLiteral for TokenStream<'input>
Source§fn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>
fn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>
Attempt to match the
literal string at pos, returning whether it
matched or failed.Source§impl<'input> ParseSlice<'input> for TokenStream<'input>
impl<'input> ParseSlice<'input> for TokenStream<'input>
Source§type Slice = &'input [PositionedToken<'input>]
type Slice = &'input [PositionedToken<'input>]
Type of a slice of the input.
Auto Trait Implementations§
impl<'t> Freeze for TokenStream<'t>
impl<'t> RefUnwindSafe for TokenStream<'t>
impl<'t> Send for TokenStream<'t>
impl<'t> Sync for TokenStream<'t>
impl<'t> Unpin for TokenStream<'t>
impl<'t> UnsafeUnpin for TokenStream<'t>
impl<'t> UnwindSafe for TokenStream<'t>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more