pub enum InlineElement {
Text(String),
Bold(String),
Italic(String),
BoldItalic(String),
Underline(String),
Strikeout(String),
Code(String),
Link {
text: String,
url: String,
},
Image {
alt: String,
url: String,
},
Footnote(String),
}Expand description
Result of parsing inline content.
Variants§
Text(String)
Plain text
Bold(String)
Bold text
Italic(String)
Italic text
BoldItalic(String)
Bold and italic text
Underline(String)
Underlined text
Strikeout(String)
Strikethrough text
Code(String)
Inline code
Link
A link
Image
An image
Footnote(String)
Footnote reference (as superscript)
Trait Implementations§
Source§impl Clone for InlineElement
impl Clone for InlineElement
Source§fn clone(&self) -> InlineElement
fn clone(&self) -> InlineElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineElement
impl Debug for InlineElement
Source§impl PartialEq for InlineElement
impl PartialEq for InlineElement
impl Eq for InlineElement
impl StructuralPartialEq for InlineElement
Auto Trait Implementations§
impl Freeze for InlineElement
impl RefUnwindSafe for InlineElement
impl Send for InlineElement
impl Sync for InlineElement
impl Unpin for InlineElement
impl UnwindSafe for InlineElement
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