pub enum ASTKind {
Show 14 variants Statements(ASTNodes), Paragraph(ASTNodes), Delimiter(Box<Delimiter>), Header(Box<Header>), TableView(TableView), ListView(ListView), QuoteNode(Box<QuoteBlock>), CodeNode(Box<CodeNode>), MathNode(Box<MathNode>), LinkNode(SmartLink), TextSpan(Box<TextSpan>), StyledSpan(Box<StyleNode>), Command(Box<Command>), Value(Box<Value>),
}
Expand description

ASTKing

Typed info of the Node

  • Block: Statements, Paragraph
  • Span: Text, Styled
  • Node: Code, Math, Link, Command

Notice

If a constructor returns individual elements, then interface accept what is needed (T).

If a constructor returns ASTNode, then the interface implements polymorphic input (impl Into<T>).

Variants

Statements(ASTNodes)

Top Scope

Paragraph(ASTNodes)

  • block only

Delimiter(Box<Delimiter>)

  • block only

Header(Box<Header>)

  • block only

TableView(TableView)

  • block only

ListView(ListView)

  • block only

QuoteNode(Box<QuoteBlock>)

  • block only

CodeNode(Box<CodeNode>)

  • block + inline

MathNode(Box<MathNode>)

  • block + inline

LinkNode(SmartLink)

  • block + inline

TextSpan(Box<TextSpan>)

  • inline only

StyledSpan(Box<StyleNode>)

  • inline only

Command(Box<Command>)

  • context sensitive

Value(Box<Value>)

  • never bared

Implementations

Constructor of [ExternalCommand]

Returns a copy of the elements, return Option::None if not match this kind.

Returns a copy of the elements, return Option::None if not match this kind.

Returns a copy of the elements, return Option::None if not match this kind.

Returns a copy of the elements, return Option::None if not match this kind.

Returns a copy of the elements, return Option::None if not match this kind.

Returns a copy of the elements, return Option::None if not match this kind.

Returns a copy of the elements, return Option::None if not match this kind.

Returns a copy of the elements, return Option::None if not match this kind.

Constructor of CodeNode

Constructor of CodeNode

Insert raw html text

Inset raw html block

Construct a header node

Constructor of MathNode

Constructor of MathNode

Constructor of MathNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Constructor of StyleNode

Aka. <br>

Aka. \n

Constructor of TextSpan::Escaped

Constructor of TextSpan::Escaped

Constructor of TextSpan::Normal

Constructor of TextSpan::Emoji

Constructor for ImageLink

Constructor for ImageLink

Constructor for HyperLink

Constructor for HyperLink

Constructor for HyperLink

Constructor of OrderedList

Constructor of OrderlessList

Constructor of QuoteBlock

Constructor of QuoteBlock

Constructor of ASTKind::Statements

Constructor of ASTKind::Paragraph

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Aware the context in which the cursor is located
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Converts this type into the (usually inferred) input type.
Convert element into ASTNode with position
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Slugify the element of notedown

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.