pub enum ListIndentKind {
CommonMark,
PythonMarkdown,
}Expand description
The style of indentation to use for list items.
CommonMark aligns continuation lines to the content column after the marker
(e.g. 3 spaces for 1. , 4 spaces for 10. ). PythonMarkdown uses a fixed
4-space indent regardless of marker width, which is required by tools like
mkdocs-material.
Variants§
CommonMark
Indents continuation lines to align with the content after the list marker (default).
PythonMarkdown
Always indents by 4 spaces, regardless of marker width.
Trait Implementations§
Source§impl Clone for ListIndentKind
impl Clone for ListIndentKind
Source§fn clone(&self) -> ListIndentKind
fn clone(&self) -> ListIndentKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ListIndentKind
impl<'de> Deserialize<'de> for ListIndentKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ListIndentKind
impl Display for ListIndentKind
Source§impl FromStr for ListIndentKind
impl FromStr for ListIndentKind
Source§impl PartialEq for ListIndentKind
impl PartialEq for ListIndentKind
Source§fn eq(&self, other: &ListIndentKind) -> bool
fn eq(&self, other: &ListIndentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ListIndentKind
impl Serialize for ListIndentKind
impl Copy for ListIndentKind
impl StructuralPartialEq for ListIndentKind
Auto Trait Implementations§
impl Freeze for ListIndentKind
impl RefUnwindSafe for ListIndentKind
impl Send for ListIndentKind
impl Sync for ListIndentKind
impl Unpin for ListIndentKind
impl UnsafeUnpin for ListIndentKind
impl UnwindSafe for ListIndentKind
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