[][src]Struct ssexp::CharHandle

pub struct CharHandle<'a, T: Iterator<Item = char>> where
    Parser<T>: 'a, 
{ /* fields omitted */ }

A handle for handling the next character

Methods

impl<'a, T: Iterator<Item = char>> CharHandle<'a, T>[src]

pub fn char(self) -> char[src]

Returns the next character from the handle without doing anything.

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

Tests, if the character from the handle is defined as macro character.

pub fn call(self, vec: &mut Vec<Token>) -> Result<ParsingState, char>[src]

Tries to call the macro character. If none is defined, it some character.

pub fn discard(self)[src]

Discards this handle. When calling the next time, the same character will be used for dispatch.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for CharHandle<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for CharHandle<'a, T> where
    T: Send

impl<'a, T> Sync for CharHandle<'a, T> where
    T: Sync

impl<'a, T> Unpin for CharHandle<'a, T>

impl<'a, T> !UnwindSafe for CharHandle<'a, T>

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, 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.