Macro aspen::AlwaysSucceed [] [src]

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

Convenience macro for creating AlwaysSucceed nodes.

Examples

Without a child:

let succeed: Node<()>  = AlwaysSucceed!{};

With a child:

let succeed_child = AlwaysSucceed!{
    Condition!{ |a: &u32| *a < 12 }
};