Struct notedown_parser::ASTNode[][src]

pub struct ASTNode<M> {
    pub kind: ASTKind<ASTNode<M>>,
    pub meta: M,
}

Fields

kind: ASTKind<ASTNode<M>>meta: M

Implementations

impl<M> ASTNode<M> where
    M: Default
[src]

pub fn statements(children: Vec<ASTNode<M>, Global>) -> ASTNode<M>[src]

pub fn paragraph(children: Vec<ASTNode<M>, Global>) -> ASTNode<M>[src]

pub fn header(children: Vec<ASTNode<M>, Global>, level: usize) -> ASTNode<M>[src]

pub fn code(code: CodeBlock) -> ASTNode<M>[src]

pub fn command(cmd: Command<ASTNode<M>>) -> ASTNode<M>[src]

pub fn hr() -> ASTNode<M>[src]

pub fn math(text: String, style: &str) -> ASTNode<M>[src]

pub fn style(children: Vec<ASTNode<M>, Global>, style: &str) -> ASTNode<M>[src]

pub fn text(text: String, style: &str) -> ASTNode<M>[src]

pub fn escaped(char: char) -> ASTNode<M>[src]

impl ASTNode<LSPMetaInfo>[src]

pub fn set_range(&mut self, x1: u32, y1: u32, x2: u32, y2: u32)[src]

impl<M> ASTNode<M>[src]

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

impl ASTNode<LSPMetaInfo>[src]

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

Trait Implementations

impl<M> Clone for ASTNode<M> where
    M: Clone
[src]

impl<M> Debug for ASTNode<M> where
    M: Debug
[src]

impl<M> Default for ASTNode<M> where
    M: Default
[src]

impl<M> Display for ASTNode<M> where
    M: Debug + Display
[src]

impl<M> Eq for ASTNode<M> where
    M: Eq
[src]

impl<M> PartialEq<ASTNode<M>> for ASTNode<M> where
    M: PartialEq<M>, 
[src]

impl<M> Slugify for ASTNode<M> where
    ASTNode<M>: Debug
[src]

impl<M> StructuralEq for ASTNode<M>[src]

impl<M> StructuralPartialEq for ASTNode<M>[src]

impl<M> ToHTML for ASTNode<M> where
    M: Debug
[src]

Auto Trait Implementations

impl<M> RefUnwindSafe for ASTNode<M> where
    M: RefUnwindSafe

impl<M> Send for ASTNode<M> where
    M: Send

impl<M> Sync for ASTNode<M> where
    M: Sync

impl<M> Unpin for ASTNode<M> where
    M: Unpin

impl<M> UnwindSafe for ASTNode<M> where
    M: UnwindSafe

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.