pub struct IfThenElseNode { /* private fields */ }Expand description
IfThenElseNode must have exactly 2 or 3 children. This node is NOT reactive.
The first child is the “statement” of the if.
If that return SUCCESS, then the second child is executed.
Instead, if it returned FAILURE, the third child is executed.
If you have only 2 children, this node will return FAILURE whenever the statement returns FAILURE.
This is equivalent to add AlwaysFailure as 3rd child.
Implementations§
Source§impl IfThenElseNode
impl IfThenElseNode
pub fn create_node(name: impl AsRef<str>, config: NodeConfig) -> TreeNode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IfThenElseNode
impl RefUnwindSafe for IfThenElseNode
impl Send for IfThenElseNode
impl Sync for IfThenElseNode
impl Unpin for IfThenElseNode
impl UnsafeUnpin for IfThenElseNode
impl UnwindSafe for IfThenElseNode
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