pub struct Config {
pub max_width: Option<usize>,
pub fixed_zero_padding: Option<usize>,
pub fixed_number: Option<usize>,
pub fixed_ordered_list_marker: Option<OrderedListMarker>,
pub fixed_unordered_list_marker: Option<UnorderedListMarker>,
pub fixed_indentation: Option<Cow<'static, str>>,
}Expand description
Configuration options for the Markdown formatter.
Fields§
§max_width: Option<usize>Maximum line width.
fixed_zero_padding: Option<usize>If set, all ordered lists will have this many leading zeroes.
fixed_number: Option<usize>If set, all ordered lists will begin with this number.
fixed_ordered_list_marker: Option<OrderedListMarker>If set, all ordered lists will have this marker after the number.
fixed_unordered_list_marker: Option<UnorderedListMarker>If set, all unordered lists will begin with this marker.
fixed_indentation: Option<Cow<'static, str>>If set, all lists will have this many indentation per level.
Implementations§
Source§impl Config
impl Config
Sourcepub fn sichanghe_opinion() -> Self
pub fn sichanghe_opinion() -> Self
Steven Hé (Sīchàng)’s opinion on the style.
Sourcepub fn list_marker(
&self,
source: &str,
) -> Result<ListMarker, ParseListMarkerError>
pub fn list_marker( &self, source: &str, ) -> Result<ListMarker, ParseListMarkerError>
Parse a list marker from string with this configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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