pub enum Inline {
Text(CowStr),
Styled(Vec<Inline>, Style),
Code(CowStr),
CodeBlock(CodeBlock),
SoftBreak,
HardBreak,
Rule,
Image(LinkType, CowStr, CowStr, Vec<Inline>),
Link(LinkType, CowStr, CowStr, Vec<Inline>),
Html(CowStr),
Math(Math),
Command(Command),
}
Variants§
Text(CowStr)
Plain text
Styled(Vec<Inline>, Style)
Code(CowStr)
Inline code
CodeBlock(CodeBlock)
A code block. May originate from markdown fenced code blocks or notebook code cells.
SoftBreak
HardBreak
Rule
Horizontal rule
Image(LinkType, CowStr, CowStr, Vec<Inline>)
An inline image (usually originates from a markdown image spec)
Link(LinkType, CowStr, CowStr, Vec<Inline>)
An inline link (usually originates from a markdown link spec)
Html(CowStr)
Unescaped html.
Math(Math)
Math element (may be inline or display) The trailing space element is necessary due to the way parsing currently works with pulldown_cmark.
Command(Command)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inline
impl<'de> Deserialize<'de> for Inline
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 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 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