pub struct LengthExemptions {
pub link_urls: bool,
pub code_spans: bool,
}Expand description
The line-length exemptions MD013’s check applies, as far as reflow can mirror them.
The checker tests each one against the budget separately, so a line is
forgiven when either reduced length fits, never when the two savings together
would fit. Reflow therefore has to keep them apart too: see
[LineWidth].
Fields§
§link_urls: boolAn inline [text](url) costs [text] and an inline  costs
![alt]. Reference, collapsed and shortcut forms are never exempt.
code_spans: boolAn inline code span costs nothing, because it cannot be wrapped.
Trait Implementations§
Source§impl Clone for LengthExemptions
impl Clone for LengthExemptions
Source§fn clone(&self) -> LengthExemptions
fn clone(&self) -> LengthExemptions
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 LengthExemptions
Source§impl Debug for LengthExemptions
impl Debug for LengthExemptions
Source§impl Default for LengthExemptions
impl Default for LengthExemptions
Source§fn default() -> LengthExemptions
fn default() -> LengthExemptions
Returns the “default value” for a type. Read more
impl Eq for LengthExemptions
Source§impl PartialEq for LengthExemptions
impl PartialEq for LengthExemptions
impl StructuralPartialEq for LengthExemptions
Auto Trait Implementations§
impl Freeze for LengthExemptions
impl RefUnwindSafe for LengthExemptions
impl Send for LengthExemptions
impl Sync for LengthExemptions
impl Unpin for LengthExemptions
impl UnsafeUnpin for LengthExemptions
impl UnwindSafe for LengthExemptions
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> 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.