AstNode

Trait AstNode 

Source
pub trait AstNode:
    Into<CstNode>
    + Clone
    + Copy {
    // Required method
    fn cast(cst: CstNode, doc: &TomlDoc) -> Option<Self>;

    // Provided method
    fn cst(self) -> CstNode { ... }
}

Required Methods§

Source

fn cast(cst: CstNode, doc: &TomlDoc) -> Option<Self>

Provided Methods§

Source

fn cst(self) -> CstNode

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§