pub struct BacktickMemo { /* private fields */ }Expand description
The code span search memo, cmark’s backticks[]: the start of the
last backtick run of each length that a scan has passed, and whether
a scan has reached the end of the subject. Once one has, every run
after that scan’s start is on record, so an opener whose length has
no run ahead of it is refused without rescanning. Without it, a
subject holding unmatched runs of distinct lengths rescanned its whole
tail once per run.
An entry only ever moves forward. A scan that succeeds part way stops before the last run of its length, and letting it overwrite the position a full scan recorded would hide a later closer from the next opener.
Trait Implementations§
Source§impl Clone for BacktickMemo
impl Clone for BacktickMemo
Source§impl Debug for BacktickMemo
impl Debug for BacktickMemo
Auto Trait Implementations§
impl Freeze for BacktickMemo
impl RefUnwindSafe for BacktickMemo
impl Send for BacktickMemo
impl Sync for BacktickMemo
impl Unpin for BacktickMemo
impl UnsafeUnpin for BacktickMemo
impl UnwindSafe for BacktickMemo
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