Enum pandoc_ast::Inline
source · pub enum Inline {
Show 20 variants
Str(String),
Emph(Vec<Inline>),
Underline(Vec<Inline>),
Strong(Vec<Inline>),
Strikeout(Vec<Inline>),
Superscript(Vec<Inline>),
Subscript(Vec<Inline>),
SmallCaps(Vec<Inline>),
Quoted(QuoteType, Vec<Inline>),
Cite(Vec<Citation>, Vec<Inline>),
Code(Attr, String),
Space,
SoftBreak,
LineBreak,
Math(MathType, String),
RawInline(Format, String),
Link(Attr, Vec<Inline>, Target),
Image(Attr, Vec<Inline>, Target),
Note(Vec<Block>),
Span(Attr, Vec<Inline>),
}
Expand description
a single formatting item like bold, italic or hyperlink
Variants§
Str(String)
Text
Emph(Vec<Inline>)
Emphasized text
Underline(Vec<Inline>)
Underlined text
Strong(Vec<Inline>)
Strongly emphasized text
Strikeout(Vec<Inline>)
Superscript(Vec<Inline>)
Subscript(Vec<Inline>)
SmallCaps(Vec<Inline>)
Quoted(QuoteType, Vec<Inline>)
Quoted text
Cite(Vec<Citation>, Vec<Inline>)
Citation
Code(Attr, String)
Inline code (literal)
Space
Inter-word space
SoftBreak
Soft line break
LineBreak
Hard line break
Math(MathType, String)
TeX math (literal)
RawInline(Format, String)
Link(Attr, Vec<Inline>, Target)
Hyperlink: text (list of inlines), target
Image(Attr, Vec<Inline>, Target)
Image: alt text (list of inlines), target
Note(Vec<Block>)
Footnote or endnote
Span(Attr, Vec<Inline>)
Generic inline container with attributes
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
source§impl PartialEq for Inline
impl PartialEq for Inline
impl StructuralPartialEq for Inline
Auto Trait Implementations§
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