#[non_exhaustive]pub struct Options {
pub match_case: bool,
pub strip_inline_markup: bool,
pub allow_skipped_levels: bool,
pub ordered_sections: bool,
}Expand description
Options controlling Markdown parsing and matcher behavior.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.match_case: boolWhether all matcher forms compare text case-sensitively.
strip_inline_markup: boolWhether inline Markdown is reduced to its text before matching.
allow_skipped_levels: boolWhether a header may be more than one level below its parent.
ordered_sections: boolWhether a scope’s rules bind in document order unless a rule’s own
ordered says otherwise (specification §3.7).
Implementations§
Source§impl Options
impl Options
Sourcepub const fn with_match_case(self, match_case: bool) -> Self
pub const fn with_match_case(self, match_case: bool) -> Self
Sets case sensitivity for every matcher form.
Sourcepub const fn with_strip_inline_markup(self, strip_inline_markup: bool) -> Self
pub const fn with_strip_inline_markup(self, strip_inline_markup: bool) -> Self
Sets whether inline Markdown is reduced to visible text for matching.
Sourcepub const fn with_allow_skipped_levels(self, allow_skipped_levels: bool) -> Self
pub const fn with_allow_skipped_levels(self, allow_skipped_levels: bool) -> Self
Sets whether headings may skip a level in the document tree.
Sourcepub const fn with_ordered_sections(self, ordered_sections: bool) -> Self
pub const fn with_ordered_sections(self, ordered_sections: bool) -> Self
Sets the default for whether each scope’s rules bind in document order.
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.