[]Enum panduck::AST

pub enum AST {
    None,
    Statements(Vec<AST>),
    Header {
        level: usize,
        children: Vec<AST>,
        r: TextRange,
    },
    HorizontalRule {
        r: TextRange,
    },
    Paragraph {
        children: Vec<AST>,
        r: TextRange,
    },
    Highlight {
        lang: String,
        code: String,
        inline: bool,
        high_line: Vec<usize>,
        r: TextRange,
    },
    MathBlock {
        inner: String,
        r: TextRange,
    },
    TableView {
        head: Vec<AST>,
        align: Vec<Option<bool>>,
        terms: Vec<Vec<AST>>,
        column: usize,
        r: TextRange,
    },
    QuoteList {
        style: Option<String>,
        body: Vec<AST>,
        r: TextRange,
    },
    OrderedList {
        head: usize,
        body: Vec<AST>,
        r: TextRange,
    },
    OrderlessList {
        body: Vec<AST>,
        r: TextRange,
    },
    Normal {
        inner: String,
        r: TextRange,
    },
    Raw {
        inner: String,
        r: TextRange,
    },
    Code {
        inner: String,
        r: TextRange,
    },
    Italic {
        children: Vec<AST>,
        r: TextRange,
    },
    Bold {
        children: Vec<AST>,
        r: TextRange,
    },
    Emphasis {
        children: Vec<AST>,
        r: TextRange,
    },
    Underline {
        children: Vec<AST>,
        r: TextRange,
    },
    Strikethrough {
        children: Vec<AST>,
        r: TextRange,
    },
    Undercover {
        children: Vec<AST>,
        r: TextRange,
    },
    MathInline {
        inner: String,
        r: TextRange,
    },
    MathDisplay {
        inner: String,
        r: TextRange,
    },
    Link {
        inner: SmartLink,
        r: TextRange,
    },
    Escaped {
        inner: char,
        r: TextRange,
    },
    Command {
        cmd: String,
        args: Vec<AST>,
        kvs: HashMap<String, AST, RandomState>,
        kind: CommandKind,
        r: TextRange,
    },
    String {
        inner: String,
        r: TextRange,
    },
    Integer {
        inner: String,
        r: TextRange,
    },
    Decimal {
        inner: String,
        r: TextRange,
    },
    Boolean {
        inner: bool,
        r: TextRange,
    },
    Array {
        inner: Vec<AST>,
        r: TextRange,
    },
}

Variants

None
  • None: It doesn't look like anything to me
Statements(Vec<AST>)
Header
  • Header: TEXT, level

Fields of Header

level: usizechildren: Vec<AST>r: TextRange
HorizontalRule

Fields of HorizontalRule

r: TextRange
Paragraph
  • Paragraph:

Fields of Paragraph

children: Vec<AST>r: TextRange
Highlight

Fields of Highlight

lang: Stringcode: Stringinline: boolhigh_line: Vec<usize>r: TextRange
MathBlock
  • Math:

Fields of MathBlock

inner: Stringr: TextRange
TableView

Fields of TableView

head: Vec<AST>align: Vec<Option<bool>>terms: Vec<Vec<AST>>column: usizer: TextRange
QuoteList

Fields of QuoteList

style: Option<String>body: Vec<AST>r: TextRange
OrderedList

Fields of OrderedList

head: usizebody: Vec<AST>r: TextRange
OrderlessList

Fields of OrderlessList

body: Vec<AST>r: TextRange
Normal
  • Code:

Fields of Normal

inner: Stringr: TextRange
Raw

Fields of Raw

inner: Stringr: TextRange
Code

`code`

Fields of Code

inner: Stringr: TextRange
Italic

Fields of Italic

children: Vec<AST>r: TextRange
Bold

Fields of Bold

children: Vec<AST>r: TextRange
Emphasis

Fields of Emphasis

children: Vec<AST>r: TextRange
Underline

Fields of Underline

children: Vec<AST>r: TextRange
Strikethrough

Fields of Strikethrough

children: Vec<AST>r: TextRange
Undercover

Fields of Undercover

children: Vec<AST>r: TextRange
MathInline

Fields of MathInline

inner: Stringr: TextRange
MathDisplay

Fields of MathDisplay

inner: Stringr: TextRange

Fields of Link

inner: SmartLinkr: TextRange
Escaped

Fields of Escaped

inner: charr: TextRange
Command

Fields of Command

cmd: Stringargs: Vec<AST>kvs: HashMap<String, AST, RandomState>kind: CommandKindr: TextRange
String

Fields of String

inner: Stringr: TextRange
Integer

Fields of Integer

inner: Stringr: TextRange
Decimal

Fields of Decimal

inner: Stringr: TextRange
Boolean

Fields of Boolean

inner: boolr: TextRange
Array

Fields of Array

inner: Vec<AST>r: TextRange

Implementations

impl AST

pub fn to_vec(&self) -> Vec<AST>

impl AST

pub fn toc(&self, max_depth: usize) -> TOC

Trait Implementations

impl Clone for AST

impl Debug for AST

impl Default for AST

impl Display for AST

impl Eq for AST

impl PartialEq<AST> for AST

impl Slugify for AST

impl StructuralEq for AST

impl StructuralPartialEq for AST

impl ToHTML for AST

Auto Trait Implementations

impl RefUnwindSafe for AST

impl Send for AST

impl Sync for AST

impl Unpin for AST

impl UnwindSafe for AST

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.