Struct knightrs::Stream[][src]

pub struct Stream<I: Iterator<Item = char>> { /* fields omitted */ }

Implementations

impl<I: Iterator<Item = char>> Stream<I>[src]

pub fn new(iter: I) -> Self[src]

pub fn rewind(&mut self)[src]

pub fn prev(&self) -> Option<char>[src]

pub fn peek(&mut self) -> Option<char>[src]

impl<I: Iterator<Item = char>> Stream<I>[src]

pub fn try_whitespace(&mut self) -> bool[src]

pub unsafe fn whitespace_unchecked(&mut self)[src]

pub fn try_comment(&mut self) -> bool[src]

pub unsafe fn comment_unchecked(&mut self)[src]

pub fn try_number(&mut self) -> Option<Number>[src]

pub unsafe fn number_unchecked(&mut self) -> Number[src]

pub fn try_variable(
    &mut self,
    env: &mut Environment<'_, '_, '_>
) -> Option<Variable>
[src]

pub unsafe fn variable_unchecked(
    &mut self,
    env: &mut Environment<'_, '_, '_>
) -> Variable
[src]

pub fn try_text(&mut self) -> Option<Result<Text, ParseError>>[src]

pub unsafe fn text_unchecked(&mut self) -> Result<Text, ParseError>[src]

pub fn try_boolean(&mut self) -> Option<Boolean>[src]

pub unsafe fn boolean_unchecked(&mut self) -> Boolean[src]

pub fn try_null(&mut self) -> bool[src]

pub unsafe fn null_unchecked(&mut self)[src]

pub fn function(
    &mut self,
    func: Function,
    env: &mut Environment<'_, '_, '_>
) -> Result<Value, ParseError>
[src]

pub fn parse(
    &mut self,
    env: &mut Environment<'_, '_, '_>
) -> Result<Value, ParseError>
[src]

Trait Implementations

impl<I: Clone + Iterator<Item = char>> Clone for Stream<I>[src]

impl<I: Debug + Iterator<Item = char>> Debug for Stream<I>[src]

impl<I: Iterator<Item = char>> Iterator for Stream<I>[src]

type Item = char

The type of the elements being iterated over.

Auto Trait Implementations

impl<I> RefUnwindSafe for Stream<I> where
    I: RefUnwindSafe

impl<I> Send for Stream<I> where
    I: Send

impl<I> Sync for Stream<I> where
    I: Sync

impl<I> Unpin for Stream<I> where
    I: Unpin

impl<I> UnwindSafe for Stream<I> where
    I: UnwindSafe

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,