[][src]Struct rust_code_analysis::AstNode

pub struct AstNode {
    pub type: &'static str,
    pub value: String,
    pub span: Span,
    pub children: Vec<AstNode>,
}

Information on an AST node.

Fields

type: &'static str

The type of node

value: String

The code associated to a node

span: Span

The start and end positions of a node in a code

children: Vec<AstNode>

The children of a node

Implementations

impl AstNode[src]

pub fn new(
    r#type: &'static str,
    value: String,
    span: Span,
    children: Vec<AstNode>
) -> Self
[src]

Trait Implementations

impl Debug for AstNode[src]

impl Serialize 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, 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.