pub enum Expr<'a> {
Show 39 variants
Root(Vec<NodeID>),
Heading(Heading<'a>),
Block(Block<'a>),
RegularLink(RegularLink<'a>),
Paragraph(Paragraph),
Italic(Italic),
Bold(Bold),
StrikeThrough(StrikeThrough),
Underline(Underline),
PlainList(PlainList),
Item(Item<'a>),
Table(Table),
TableRow(TableRow),
TableCell(TableCell),
PlainLink(PlainLink<'a>),
Superscript(Superscript<'a>),
Subscript(Subscript<'a>),
Drawer(Drawer<'a>),
Affiliated(Affiliated<'a>),
FootnoteDef(FootnoteDef<'a>),
FootnoteRef(FootnoteRef<'a>),
BlankLine,
SoftBreak,
LineBreak,
HorizontalRule,
Plain(&'a str),
Verbatim(Verbatim<'a>),
Code(Code<'a>),
Comment(Comment<'a>),
InlineSrc(InlineSrc<'a>),
Keyword(Keyword<'a>),
LatexEnv(LatexEnv<'a>),
LatexFragment(LatexFragment<'a>),
Entity(Entity<'a>),
Emoji(Emoji<'a>),
Target(Target<'a>),
Macro(MacroCall<'a>),
ExportSnippet(ExportSnippet<'a>),
MacroDef(MacroDef<'a>),
}
Expand description
An enum that represents all possible AST nodes
Variants§
Root(Vec<NodeID>)
Heading(Heading<'a>)
Block(Block<'a>)
RegularLink(RegularLink<'a>)
Paragraph(Paragraph)
Italic(Italic)
Bold(Bold)
StrikeThrough(StrikeThrough)
Underline(Underline)
PlainList(PlainList)
Item(Item<'a>)
Table(Table)
TableRow(TableRow)
TableCell(TableCell)
PlainLink(PlainLink<'a>)
Superscript(Superscript<'a>)
Subscript(Subscript<'a>)
Drawer(Drawer<'a>)
Affiliated(Affiliated<'a>)
FootnoteDef(FootnoteDef<'a>)
FootnoteRef(FootnoteRef<'a>)
BlankLine
SoftBreak
LineBreak
HorizontalRule
Plain(&'a str)
Verbatim(Verbatim<'a>)
Code(Code<'a>)
Comment(Comment<'a>)
InlineSrc(InlineSrc<'a>)
Keyword(Keyword<'a>)
LatexEnv(LatexEnv<'a>)
LatexFragment(LatexFragment<'a>)
Entity(Entity<'a>)
Emoji(Emoji<'a>)
Target(Target<'a>)
Macro(MacroCall<'a>)
ExportSnippet(ExportSnippet<'a>)
MacroDef(MacroDef<'a>)
Implementations§
Trait Implementations§
Source§impl<'a> From<Affiliated<'a>> for Expr<'a>
impl<'a> From<Affiliated<'a>> for Expr<'a>
Source§fn from(original: Affiliated<'a>) -> Expr<'a>
fn from(original: Affiliated<'a>) -> Expr<'a>
Converts to this type from the input type.
Source§impl<'a> From<ExportSnippet<'a>> for Expr<'a>
impl<'a> From<ExportSnippet<'a>> for Expr<'a>
Source§fn from(original: ExportSnippet<'a>) -> Expr<'a>
fn from(original: ExportSnippet<'a>) -> Expr<'a>
Converts to this type from the input type.
Source§impl<'a> From<FootnoteDef<'a>> for Expr<'a>
impl<'a> From<FootnoteDef<'a>> for Expr<'a>
Source§fn from(original: FootnoteDef<'a>) -> Expr<'a>
fn from(original: FootnoteDef<'a>) -> Expr<'a>
Converts to this type from the input type.
Source§impl<'a> From<FootnoteRef<'a>> for Expr<'a>
impl<'a> From<FootnoteRef<'a>> for Expr<'a>
Source§fn from(original: FootnoteRef<'a>) -> Expr<'a>
fn from(original: FootnoteRef<'a>) -> Expr<'a>
Converts to this type from the input type.
Source§impl<'a> From<LatexFragment<'a>> for Expr<'a>
impl<'a> From<LatexFragment<'a>> for Expr<'a>
Source§fn from(original: LatexFragment<'a>) -> Expr<'a>
fn from(original: LatexFragment<'a>) -> Expr<'a>
Converts to this type from the input type.
Source§impl<'a> From<RegularLink<'a>> for Expr<'a>
impl<'a> From<RegularLink<'a>> for Expr<'a>
Source§fn from(original: RegularLink<'a>) -> Expr<'a>
fn from(original: RegularLink<'a>) -> Expr<'a>
Converts to this type from the input type.
Source§impl<'a> From<StrikeThrough> for Expr<'a>
impl<'a> From<StrikeThrough> for Expr<'a>
Source§fn from(original: StrikeThrough) -> Expr<'a>
fn from(original: StrikeThrough) -> Expr<'a>
Converts to this type from the input type.
Source§impl<'a> From<Superscript<'a>> for Expr<'a>
impl<'a> From<Superscript<'a>> for Expr<'a>
Source§fn from(original: Superscript<'a>) -> Expr<'a>
fn from(original: Superscript<'a>) -> Expr<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Expr<'a>
impl<'a> RefUnwindSafe for Expr<'a>
impl<'a> Send for Expr<'a>
impl<'a> Sync for Expr<'a>
impl<'a> Unpin for Expr<'a>
impl<'a> UnwindSafe for Expr<'a>
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