Struct Fences
struct Fences {
open: Option<(char, usize)>,
}Expand description
Tracks fenced code blocks line by line, so every rewrite in this module agrees on where a fence is.
A fence follows CommonMark: at most three spaces of indentation, then a run
of at least three backticks or tildes (a backtick fence’s info string has no
backtick). It closes on a run of the same character at least as long, with
nothing after it. A line indented four spaces is indented code, never a
fence.
Fields§
§open: Option<(char, usize)>The open fence’s character and run length.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fences
impl RefUnwindSafe for Fences
impl Send for Fences
impl Sync for Fences
impl Unpin for Fences
impl UnsafeUnpin for Fences
impl UnwindSafe for Fences
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
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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