pub struct FenceTracker { /* private fields */ }Expand description
Incremental tracker for fenced-code-block open/close transitions.
Feed lines one at a time via advance; query the current
context with kind. The tracker handles leading-whitespace
limits (>3 spaces → not a fence), blockquote prefix stripping, and
backtick/tilde marker matching.
The tracker reports the fence context that applies to the current line before that line mutates the state. Callers rely on that when deciding whether the current raw line can open or continue a table.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FenceTracker
impl RefUnwindSafe for FenceTracker
impl Send for FenceTracker
impl Sync for FenceTracker
impl Unpin for FenceTracker
impl UnsafeUnpin for FenceTracker
impl UnwindSafe for FenceTracker
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more