pub struct Memo {
pub start: usize,
pub end: usize,
pub aux: usize,
}Expand description
Per-line, per-finder scratch handed to
Finder::try_at_memo/Finder::try_trigger_at_memo.
A finder may record what it learned about the current line (typically
the extent of a run that cannot match) so that later attempts on the same
line stay cheap. It is a cache only: results must not depend on it. The
scanner resets it to Memo::default() (an empty range) for every line.
Fields§
§start: usize§end: usize§aux: usizeFree slot for one more position the finder wants to remember.
Implementations§
Trait Implementations§
impl Copy for Memo
impl Eq for Memo
impl StructuralPartialEq for Memo
Auto Trait Implementations§
impl Freeze for Memo
impl RefUnwindSafe for Memo
impl Send for Memo
impl Sync for Memo
impl Unpin for Memo
impl UnsafeUnpin for Memo
impl UnwindSafe for Memo
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