pub enum MarkKind {
Bold,
ItalicAsterisk,
ItalicUnderscore,
Strike,
Underline,
Highlight,
Code,
Link,
}Expand description
The eight kinds of inline-mark matchers exposed to callers. Using an enum (rather than eight separate free functions) keeps the WASM boundary narrow — JS passes a tag string, Rust dispatches.
Variants§
Bold
**bold**
ItalicAsterisk
*italic* (must run AFTER Bold so the closing * in
**bold** hits bold first).
ItalicUnderscore
_italic_ (must run AFTER Underline for the same reason).
Strike
~~strike~~
Underline
__underline__
Highlight
==highlight==
Code
`code`
Link
[text](url) — returns a richer LinkMatch (two text ranges).
Trait Implementations§
impl Copy for MarkKind
Source§impl<'de> Deserialize<'de> for MarkKind
impl<'de> Deserialize<'de> for MarkKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MarkKind
impl StructuralPartialEq for MarkKind
Auto Trait Implementations§
impl Freeze for MarkKind
impl RefUnwindSafe for MarkKind
impl Send for MarkKind
impl Sync for MarkKind
impl Unpin for MarkKind
impl UnsafeUnpin for MarkKind
impl UnwindSafe for MarkKind
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