Enum notedown_ast::AST[][src]

pub enum AST {
    Node {
        kind: ASTKind,
        children: Vec<AST>,
        r: Option<Box<TextRange>>,
    },
    Leaf {
        kind: ASTKind,
        r: Option<Box<TextRange>>,
    },
}

Variants

Node

Fields of Node

kind: ASTKindchildren: Vec<AST>r: Option<Box<TextRange>>
Leaf

Fields of Leaf

kind: ASTKindr: Option<Box<TextRange>>

Implementations

impl AST[src]

pub fn kind(&self) -> ASTKind[src]

pub fn children(&self) -> Vec<AST>[src]

pub fn range(&self) -> TextRange[src]

impl AST[src]

pub fn statements(children: Vec<AST>, r: TextRange) -> Self[src]

pub fn paragraph(children: Vec<AST>, r: TextRange) -> Self[src]

pub fn header(children: Vec<AST>, level: usize, r: TextRange) -> Self[src]

pub fn code(code: CodeBlock, r: TextRange) -> AST[src]

pub fn command(cmd: Command, r: TextRange) -> AST[src]

pub fn math(text: String, style: &str, r: TextRange) -> Self[src]

pub fn style(children: Vec<AST>, style: &str, r: TextRange) -> Self[src]

pub fn text(text: String, style: &str, r: TextRange) -> Self[src]

pub fn escaped(char: char, r: TextRange) -> Self[src]

impl AST[src]

pub fn content_aware(&self, line: u32, column: u32) -> ContentAware[src]

impl AST[src]

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

Trait Implementations

impl Clone for AST[src]

impl Debug for AST[src]

impl Default for AST[src]

impl Display for AST[src]

impl Eq for AST[src]

impl PartialEq<AST> for AST[src]

impl Slugify for AST[src]

impl StructuralEq for AST[src]

impl StructuralPartialEq for AST[src]

impl ToHTML for AST[src]

Auto Trait Implementations

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.