pub enum Inline {
Text(String),
Emphasis(Inlines),
Strong(Inlines),
Strikethrough(Inlines),
Code(String),
Link {
link_type: LinkType,
dest_url: String,
title: String,
id: String,
content_text: Inlines,
},
SoftBreak,
HardBreak,
}
Expand description
An inline piece of atomic Markdown content. (CommonMark: inlines)
Variants§
Text(String)
Emphasis(Inlines)
CommonMark: emphasis
Strong(Inlines)
CommonMark: strong emphasis
Strikethrough(Inlines)
Strikethrough styled text. (Non-standard.)
Code(String)
CommonMark: code spans
Link
CommonMark: links
Fields
§
dest_url: String
CommonMark: link destination
§
title: String
CommonMark: link title
§
id: String
CommonMark: link label
SoftBreak
CommonMark: soft line breaks
HardBreak
CommonMark: hard line breaks
Implementations§
Trait Implementations§
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