pub struct Interpreter<'code, Span> { /* private fields */ }Implementations§
Source§impl<'code, Span> Interpreter<'code, Span>where
Span: Copy,
impl<'code, Span> Interpreter<'code, Span>where
Span: Copy,
pub fn step( &mut self, token_description: TokenDescription, span: Span, ) -> Result<Transition, (Vec<TokenDescription>, Span)>
pub fn finish( &mut self, end_span: Span, ) -> Result<Transition, (Vec<TokenDescription>, Span)>
pub fn initial_transition(&self) -> Transition
Trait Implementations§
Source§impl<'code, Span: Clone> Clone for Interpreter<'code, Span>
impl<'code, Span: Clone> Clone for Interpreter<'code, Span>
Source§fn clone(&self) -> Interpreter<'code, Span>
fn clone(&self) -> Interpreter<'code, Span>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'code, Span: Debug> Debug for Interpreter<'code, Span>
impl<'code, Span: Debug> Debug for Interpreter<'code, Span>
Source§impl<Span> Ord for Interpreter<'_, Span>where
Span: Copy,
impl<Span> Ord for Interpreter<'_, Span>where
Span: Copy,
Source§fn cmp(&self, other: &Interpreter<'_, Span>) -> Ordering
fn cmp(&self, other: &Interpreter<'_, Span>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Span> PartialEq for Interpreter<'_, Span>where
Span: Copy,
impl<Span> PartialEq for Interpreter<'_, Span>where
Span: Copy,
Source§impl<Span> PartialOrd for Interpreter<'_, Span>where
Span: Copy,
impl<Span> PartialOrd for Interpreter<'_, Span>where
Span: Copy,
impl<Span> Eq for Interpreter<'_, Span>where
Span: Copy,
Auto Trait Implementations§
impl<'code, Span> Freeze for Interpreter<'code, Span>where
Span: Freeze,
impl<'code, Span> RefUnwindSafe for Interpreter<'code, Span>where
Span: RefUnwindSafe,
impl<'code, Span> Send for Interpreter<'code, Span>where
Span: Send,
impl<'code, Span> Sync for Interpreter<'code, Span>where
Span: Sync,
impl<'code, Span> Unpin for Interpreter<'code, Span>where
Span: Unpin,
impl<'code, Span> UnwindSafe for Interpreter<'code, Span>where
Span: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more