Macro aspen::AlwaysFail [] [src]

macro_rules! AlwaysFail {
    ( $e:expr ) => { ... };
    ( ) => { ... };
}

Convenience macro for creating AlwaysFail nodes.

Examples

Without a child:

let fail: Node<()>  = AlwaysFail!{};

With a child:

let fail_child = AlwaysFail!{
    Condition!{ |a: &u32| *a < 12 }
};