pub struct EditorConfigSettings {
pub line_length: Option<LineLength>,
pub indent: Option<IndentSize>,
}Expand description
The .editorconfig properties rumdl maps onto its own settings.
Ordered so it can key a map of file groups: two files resolving to the same settings share one effective config.
Fields§
§line_length: Option<LineLength>max_line_length, mapped onto [global] line-length. off becomes
[LineLength::new(0)], which rumdl reads as no limit.
indent: Option<IndentSize>indent_size in spaces, mapped onto MD007’s indent.
Implementations§
Trait Implementations§
Source§impl Clone for EditorConfigSettings
impl Clone for EditorConfigSettings
Source§fn clone(&self) -> EditorConfigSettings
fn clone(&self) -> EditorConfigSettings
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 EditorConfigSettings
Source§impl Debug for EditorConfigSettings
impl Debug for EditorConfigSettings
Source§impl Default for EditorConfigSettings
impl Default for EditorConfigSettings
Source§fn default() -> EditorConfigSettings
fn default() -> EditorConfigSettings
Returns the “default value” for a type. Read more
impl Eq for EditorConfigSettings
Source§impl Ord for EditorConfigSettings
impl Ord for EditorConfigSettings
Source§fn cmp(&self, other: &EditorConfigSettings) -> Ordering
fn cmp(&self, other: &EditorConfigSettings) -> 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 EditorConfigSettings
impl PartialEq for EditorConfigSettings
Source§impl PartialOrd for EditorConfigSettings
impl PartialOrd for EditorConfigSettings
impl StructuralPartialEq for EditorConfigSettings
Auto Trait Implementations§
impl Freeze for EditorConfigSettings
impl RefUnwindSafe for EditorConfigSettings
impl Send for EditorConfigSettings
impl Sync for EditorConfigSettings
impl Unpin for EditorConfigSettings
impl UnsafeUnpin for EditorConfigSettings
impl UnwindSafe for EditorConfigSettings
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
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.