Enum behavior_tree::Behavior[][src]

pub enum Behavior<T, P> {
    Wait(f64f64),
    If(Stringfn(_: &mut T, _: &P) -> boolBox<Behavior<T, P>>, Box<Behavior<T, P>>),
    Sequence(Vec<Behavior<T, P>>),
    Action(Stringfn(_: &mut T, _: &P) -> Status),
    ActionSuccess(Stringfn(_: &mut T, _: &P)),
}

Variants

Wait(f64f64)

Tuple Fields of Wait

0: f641: f64
If(Stringfn(_: &mut T, _: &P) -> boolBox<Behavior<T, P>>, Box<Behavior<T, P>>)

Tuple Fields of If

0: String1: fn(_: &mut T, _: &P) -> bool2: Box<Behavior<T, P>>3: Box<Behavior<T, P>>
Sequence(Vec<Behavior<T, P>>)

Tuple Fields of Sequence

0: Vec<Behavior<T, P>>
Action(Stringfn(_: &mut T, _: &P) -> Status)

Tuple Fields of Action

0: String1: fn(_: &mut T, _: &P) -> Status
ActionSuccess(Stringfn(_: &mut T, _: &P))

Tuple Fields of ActionSuccess

0: String1: fn(_: &mut T, _: &P)

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.