pub enum Inline {
Show 13 variants
Text(String),
Bold(Vec<Inline>),
Italic(Vec<Inline>),
Underline(Vec<Inline>),
Strikethrough(Vec<Inline>),
Spoiler(Vec<Inline>),
Marked(Vec<Inline>),
Subscript(Vec<Inline>),
Superscript(Vec<Inline>),
Code(String),
Math(String),
Link {
href: String,
content: Vec<Inline>,
},
LineBreak,
}Expand description
Inline (phrasing) content.
Variants§
Text(String)
Plain text.
Bold(Vec<Inline>)
Bold.
Italic(Vec<Inline>)
Italic.
Underline(Vec<Inline>)
Underline.
Strikethrough(Vec<Inline>)
Strikethrough.
Spoiler(Vec<Inline>)
Spoiler.
Marked(Vec<Inline>)
Marked / highlighted.
Subscript(Vec<Inline>)
Subscript.
Superscript(Vec<Inline>)
Superscript.
Code(String)
Inline monospace code (plain text only).
Math(String)
Inline formula, raw LaTeX.
Link
A link to an http(s), mailto:, tel:, tg://user URL or an in-document #anchor.
LineBreak
A line break (<br>).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Inline
Auto Trait Implementations§
impl Forget for Inline
impl Freeze for Inline
impl Move 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