Enum notedown_ast::nodes::ASTKind [−][src]
pub enum ASTKind {
Show 13 variants
Statements(ASTNodes),
Paragraph(ASTNodes),
Delimiter(Box<Delimiter>),
Header(Box<Header>),
TableView(Box<TableView>),
ListView(ListView),
CodeNode(Box<CodeNode>),
MathNode(Box<MathNode>),
LinkNode(SmartLink),
TextSpan(Box<TextNode>),
StyledSpan(Box<StyleNode>),
Command(Box<Command>),
Value(Box<Value>),
}
Expand description
Block,
- Block:
- Span: Text, Styled
- Node: Code, Math, Link, Command
Variants
Statements(ASTNodes)
Tuple Fields
0: ASTNodes
Top Scope
Paragraph(ASTNodes)
Tuple Fields
0: ASTNodes
Paragraph
:
Delimiter(Box<Delimiter>)
block
Header(Box<Header>)
Header
: TEXT, level
TableView(Box<TableView>)
ListView(ListView)
Tuple Fields
0: ListView
CodeNode(Box<CodeNode>)
block: a
span: `code`
MathNode(Box<MathNode>)
block: a
span: `code`
LinkNode(SmartLink)
Tuple Fields
0: SmartLink
block: a
span: `code`
TextSpan(Box<TextNode>)
span
StyledSpan(Box<StyleNode>)
span
Command(Box<Command>)
in
Value(Box<Value>)
Implementations
pub fn command_line(
cmd: impl Into<String>,
content: impl Into<String>,
r: Option<OffsetRange>
) -> ASTNode
pub fn code_block(
code: impl Into<String>,
language: impl Into<String>,
range: Option<OffsetRange>
) -> ASTNode
aka <br>
pub fn image_link_alt(
src: impl Into<String>,
alt: impl Into<String>,
range: Option<OffsetRange>
) -> ASTNode
pub fn hyper_link_text(
src: impl Into<String>,
text: impl Into<String>,
range: Option<OffsetRange>
) -> ASTNode
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ASTKind
impl UnwindSafe for ASTKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.