pub struct StreamedTokenReader<T: PartialEq, TData> { /* fields omitted */ }
Returns reference to next token but does not advance iterator forward
Returns token and advances forward
Runs the closure over the upcoming tokens. Passes the value behind the Token to the closure.
Will stop and return a reference to the next Token from when the closure returns true.
Returns None if reader finishes before closure returns true. Does not advance the reader. Read more
Tests that next token matches an expected type. Will return error if does not
match. The ok value contains the data of the valid token.
Else it will return the Err with the expected token type and the token that did not match Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.