[][src]Struct hime_redist::ast::AstNode

pub struct AstNode<'a> { /* fields omitted */ }

Represents a node in an Abstract Syntax Tree

Implementations

impl<'a> AstNode<'a>[src]

pub fn id(&self) -> usize[src]

Gets the identifier of this node

pub fn get_token_index(&self) -> Option<usize>[src]

Gets the index of the token born by this node, if any

pub fn parent(&self) -> Option<AstNode>[src]

Gets the parent of this node, if any

pub fn children(&self) -> AstFamily[src]

Gets the children of this node

Trait Implementations

impl<'a> Clone for AstNode<'a>[src]

impl<'a> Display for AstNode<'a>[src]

impl<'a> SemanticElementTrait for AstNode<'a>[src]

fn get_position(&self) -> Option<TextPosition>[src]

Gets the position in the input text of this element

fn get_span(&self) -> Option<TextSpan>[src]

Gets the span in the input text of this element

fn get_context(&self) -> Option<TextContext>[src]

Gets the context of this element in the input

fn get_symbol(&self) -> Symbol[src]

Gets the grammar symbol associated to this element

fn get_value(&self) -> Option<String>[src]

Gets the value of this element, if any

Auto Trait Implementations

impl<'a> RefUnwindSafe for AstNode<'a>

impl<'a> Send for AstNode<'a>

impl<'a> Sync for AstNode<'a>

impl<'a> Unpin for AstNode<'a>

impl<'a> UnwindSafe for AstNode<'a>

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.