pub struct Node<F> {
pub name: &'static str,
/* private fields */
}Expand description
A simple callback function performed on the actor.
The result of the callback function is used as the result of evaluate.
Fields§
§name: &'static strImplementations§
Trait Implementations§
Source§impl<T, F> BehaviourNode<T> for Node<F>
impl<T, F> BehaviourNode<T> for Node<F>
fn evaluate(&mut self, target: &mut T) -> BehaviourResult
Auto Trait Implementations§
impl<F> Freeze for Node<F>where
F: Freeze,
impl<F> RefUnwindSafe for Node<F>where
F: RefUnwindSafe,
impl<F> Send for Node<F>where
F: Send,
impl<F> Sync for Node<F>where
F: Sync,
impl<F> Unpin for Node<F>where
F: Unpin,
impl<F> UnwindSafe for Node<F>where
F: UnwindSafe,
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