pub(super) struct PatternMatcher;Expand description
Pattern matching helpers
Implementations§
Source§impl PatternMatcher
impl PatternMatcher
Sourcepub fn is_document_start(input: &str, pos: usize) -> bool
pub fn is_document_start(input: &str, pos: usize) -> bool
Check for document start pattern (—)
Sourcepub fn is_document_end(input: &str, pos: usize) -> bool
pub fn is_document_end(input: &str, pos: usize) -> bool
Check for document end pattern (…)
Sourcepub fn is_tag_start(ch: char) -> bool
pub fn is_tag_start(ch: char) -> bool
Check if we’re at the start of a tag
Sourcepub fn is_anchor_start(ch: char) -> bool
pub fn is_anchor_start(ch: char) -> bool
Check if we’re at the start of an anchor
Sourcepub fn is_alias_start(ch: char) -> bool
pub fn is_alias_start(ch: char) -> bool
Check if we’re at the start of an alias
Sourcepub fn is_comment_start(ch: char) -> bool
pub fn is_comment_start(ch: char) -> bool
Check if we’re at the start of a comment
Auto Trait Implementations§
impl Freeze for PatternMatcher
impl RefUnwindSafe for PatternMatcher
impl Send for PatternMatcher
impl Sync for PatternMatcher
impl Unpin for PatternMatcher
impl UnwindSafe for PatternMatcher
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