pub enum DelimChar {
Open {
len: u8,
partner: usize,
partner_len: u8,
kind: EmphasisKind,
},
Close,
Literal,
}Expand description
Disposition of a single delimiter byte after emphasis resolution.
Variants§
Open
Start of an opening marker. The marker spans len bytes from this
position; the matching closer starts at partner and spans
partner_len bytes.
Close
Start of a closing marker. The matching opener starts at partner.
Emission jumps past close markers via the matching Open entry, so
this variant is only consulted defensively.
Literal
Unmatched delimiter byte; emit as literal text.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DelimChar
impl RefUnwindSafe for DelimChar
impl Send for DelimChar
impl Sync for DelimChar
impl Unpin for DelimChar
impl UnsafeUnpin for DelimChar
impl UnwindSafe for DelimChar
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