Struct notedown_parser::ASTNode[][src]

pub struct ASTNode {
    pub kind: ASTKind<ASTNode>,
    pub range: TextRange,
}

Fields

kind: ASTKind<ASTNode>range: TextRange

Implementations

impl ASTNode[src]

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

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

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

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

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

pub fn hr(r: TextRange) -> ASTNode[src]

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

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

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

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

impl ASTNode[src]

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

impl ASTNode[src]

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

Trait Implementations

impl Clone for ASTNode[src]

impl Debug for ASTNode[src]

impl Default for ASTNode[src]

impl Display for ASTNode[src]

impl Eq for ASTNode[src]

impl PartialEq<ASTNode> for ASTNode[src]

impl Slugify for ASTNode[src]

impl StructuralEq for ASTNode[src]

impl StructuralPartialEq for ASTNode[src]

impl ToHTML for ASTNode[src]

Auto Trait Implementations

impl RefUnwindSafe for ASTNode

impl Send for ASTNode

impl Sync for ASTNode

impl Unpin for ASTNode

impl UnwindSafe for ASTNode

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.