[][src]Struct hinku::SpanningStream

pub struct SpanningStream<'a, S> { /* fields omitted */ }

A TokenStream that keeps track of the span advanced while parsing.

Implementations

impl<'a, S> SpanningStream<'a, S>[src]

pub fn new(parent: &'a mut S) -> SpanningStream<'a, S>[src]

Create a new SpanningStream by wrapping a mutable reference to a parent TokenStream.

pub fn span(self) -> Option<Span>[src]

Return the part of the input parsed since creating the SpanningStream.

Trait Implementations

impl<'a, S, T> TokenStream<T> for SpanningStream<'a, S> where
    S: TokenStream<T>, 
[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for SpanningStream<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for SpanningStream<'a, S> where
    S: Send

impl<'a, S> Sync for SpanningStream<'a, S> where
    S: Sync

impl<'a, S> Unpin for SpanningStream<'a, S>

impl<'a, S> !UnwindSafe for SpanningStream<'a, S>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T, S> TokenStreamExt<T> for S where
    S: TokenStream<T>, 
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.