pub struct Memo<P: Clone + Eq + Hash, T: Clone> { /* private fields */ }Expand description
Memorization for a parser.
It records the results of parsing a given position in the source code, including the parsed value and the position to which the parser was advanced.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<P, T> !Freeze for Memo<P, T>
impl<P, T> !RefUnwindSafe for Memo<P, T>
impl<P, T> Send for Memo<P, T>
impl<P, T> !Sync for Memo<P, T>
impl<P, T> Unpin for Memo<P, T>
impl<P, T> UnwindSafe for Memo<P, T>where
P: UnwindSafe,
T: 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