pub enum Inline {
Emphasis,
Strong,
Strikethrough,
Code,
Link(Link),
Image(Link),
}Expand description
The kind of inline span an EnterInline/ExitInline event opens or closes.
Unlike the cumulative InlineStyle flags carried on Text (which a flat renderer reads),
these events make nesting explicit: an HTML renderer emits exactly one tag per enter/exit, so
*a **b** c* nests as <em>a <strong>b</strong> c</em> rather than three independent runs.
Variants§
Trait Implementations§
impl Eq for Inline
impl StructuralPartialEq for Inline
Auto Trait Implementations§
impl Freeze for Inline
impl RefUnwindSafe for Inline
impl Send for Inline
impl Sync for Inline
impl Unpin for Inline
impl UnsafeUnpin for Inline
impl UnwindSafe for Inline
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