pub struct WhileDoElseNode {}Expand description
WhileDoElse must have exactly 2 or 3 children. It is a REACTIVE node of IfThenElseNode.
The first child is the “statement” that is executed at each tick
If result is SUCCESS, the second child is executed.
If result is FAILURE, the third child is executed.
If the 2nd or 3d child is RUNNING and the statement changes, the RUNNING child will be stopped before starting the sibling.
Implementations§
Source§impl WhileDoElseNode
impl WhileDoElseNode
pub fn create_node(name: impl AsRef<str>, config: NodeConfig) -> TreeNode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WhileDoElseNode
impl RefUnwindSafe for WhileDoElseNode
impl Send for WhileDoElseNode
impl Sync for WhileDoElseNode
impl Unpin for WhileDoElseNode
impl UnsafeUnpin for WhileDoElseNode
impl UnwindSafe for WhileDoElseNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more