pub struct SectionMatcher {
pub title: MatchReplace,
pub level_min: Option<u8>,
pub level_max: Option<u8>,
}Expand description
matcher for Selector::Section
Fields§
§title: MatchReplace§level_min: Option<u8>The minimum level to match, inclusive. In other words, matches sections whose h<n> has $n ≥ level_min$.
For example, ## matches level_min: 2 and level_min: 3, but not level_min: 1.
If absent, all levels match (as far as level_min is concerned).
level_max: Option<u8>The max level to match, inclusive. In other words, matches sections whose h<n> has $n ≤ level_max$.
For example, ## matches level_max: 1 and level_max: 2, but not level_max: 3.
If absent, all levels match (as far as level_max is concerned).
Trait Implementations§
Source§impl Clone for SectionMatcher
impl Clone for SectionMatcher
Source§fn clone(&self) -> SectionMatcher
fn clone(&self) -> SectionMatcher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SectionMatcher
impl Debug for SectionMatcher
Source§impl Hash for SectionMatcher
impl Hash for SectionMatcher
Source§impl Ord for SectionMatcher
impl Ord for SectionMatcher
Source§fn cmp(&self, other: &SectionMatcher) -> Ordering
fn cmp(&self, other: &SectionMatcher) -> Ordering
1.21.0 · 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 SectionMatcher
impl PartialEq for SectionMatcher
Source§impl PartialOrd for SectionMatcher
impl PartialOrd for SectionMatcher
impl Eq for SectionMatcher
impl StructuralPartialEq for SectionMatcher
Auto Trait Implementations§
impl Freeze for SectionMatcher
impl RefUnwindSafe for SectionMatcher
impl Send for SectionMatcher
impl Sync for SectionMatcher
impl Unpin for SectionMatcher
impl UnsafeUnpin for SectionMatcher
impl UnwindSafe for SectionMatcher
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