pub struct OlAlignColumn(/* private fields */);Expand description
Target text column for MD030’s ol-align-column setting: 0 (off) or 3..=6.
Ordered list text is aligned to this column, measured from the start of the
marker. The range is not a style preference but a CommonMark constraint: at most
4 spaces may follow a list marker (5 or more start an indented code block), and
the narrowest marker (1.) is 2 columns wide, so text can only land between
column 3 (1. + 1 space) and column 6 (1. + 4 spaces). 0 disables alignment.
Validated at construction and during config deserialization, so an out-of-range value is rejected with a clear error rather than silently degrading.
Implementations§
Source§impl OlAlignColumn
impl OlAlignColumn
Trait Implementations§
Source§impl Clone for OlAlignColumn
impl Clone for OlAlignColumn
Source§fn clone(&self) -> OlAlignColumn
fn clone(&self) -> OlAlignColumn
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 moreimpl Copy for OlAlignColumn
Source§impl Debug for OlAlignColumn
impl Debug for OlAlignColumn
Source§impl Default for OlAlignColumn
impl Default for OlAlignColumn
Source§fn default() -> OlAlignColumn
fn default() -> OlAlignColumn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OlAlignColumn
impl<'de> Deserialize<'de> for OlAlignColumn
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
impl Eq for OlAlignColumn
Source§impl Hash for OlAlignColumn
impl Hash for OlAlignColumn
Source§impl Ord for OlAlignColumn
impl Ord for OlAlignColumn
Source§fn cmp(&self, other: &OlAlignColumn) -> Ordering
fn cmp(&self, other: &OlAlignColumn) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OlAlignColumn
impl PartialEq for OlAlignColumn
Source§fn eq(&self, other: &OlAlignColumn) -> bool
fn eq(&self, other: &OlAlignColumn) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OlAlignColumn
impl PartialOrd for OlAlignColumn
Source§impl Serialize for OlAlignColumn
impl Serialize for OlAlignColumn
impl StructuralPartialEq for OlAlignColumn
Auto Trait Implementations§
impl Freeze for OlAlignColumn
impl RefUnwindSafe for OlAlignColumn
impl Send for OlAlignColumn
impl Sync for OlAlignColumn
impl Unpin for OlAlignColumn
impl UnsafeUnpin for OlAlignColumn
impl UnwindSafe for OlAlignColumn
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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