[−][src]Struct ssexp::CharHandle
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,
T: RefUnwindSafe,
impl<'a, T> Send for CharHandle<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for CharHandle<'a, T> where
T: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,