[][src]Enum crulz::ast::ASTNode

pub enum ASTNode {
    NullNode,
    Constant(boolAtom),
    Argument {
        indirection: usize,
        index: Option<usize>,
    },
    Grouped(GroupTypeVec<ASTNode>),
    CmdEval(Vec<ASTNode>, CmdEvalArgs),
}

Variants

NullNode
Constant(boolAtom)

Constant: is_non_space, data

Argument

Argument: indirection (= (count of '$'s) - 1), index no given index means something like '$$.'

Fields of Argument

indirection: usizeindex: Option<usize>
Grouped(GroupTypeVec<ASTNode>)

Grouped: type, elems loose groups are created while replacing patterns

CmdEval(Vec<ASTNode>, CmdEvalArgs)

CmdEval: cmd, args

Trait Implementations

impl Clone for ASTNode[src]

impl Debug for ASTNode[src]

impl Default for ASTNode[src]

impl<'de> Deserialize<'de> for ASTNode[src]

impl Eq for ASTNode[src]

impl FromIterator<ASTNode> for CmdEvalArgs[src]

impl LiftAST for ASTNode[src]

type LiftT = VAN

impl MangleAST for ASTNode[src]

impl PartialEq<ASTNode> for ASTNode[src]

impl Serialize for ASTNode[src]

impl StructuralEq for ASTNode[src]

impl StructuralPartialEq 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.