Enum rhai::ASTNode[][src]

pub enum ASTNode<'a> {
    Stmt(&'a Stmt),
    Expr(&'a Expr),
}

(INTERNALS) An AST node, consisting of either an Expr or a Stmt. Exported under the internals feature only.

Volatile Data Structure

This type is volatile and may change.

Variants

Stmt(&'a Stmt)
Expr(&'a Expr)

Trait Implementations

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

impl<'a> Debug for ASTNode<'a>[src]

impl<'a> From<&'a Expr> for ASTNode<'a>[src]

impl<'a> From<&'a Stmt> for ASTNode<'a>[src]

impl<'a> Hash for ASTNode<'a>[src]

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> CallHasher for T where
    T: Hash + ?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, 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.