pub trait Node<T>:
Debug
+ Send
+ Sync {
// Required method
fn tick(&mut self, ctx: &mut TickContext<'_, T>) -> Status;
// Provided methods
fn abort(&mut self) { ... }
fn name(&self) -> &str { ... }
}Expand description
A node in the behavior tree.
Required Methods§
fn tick(&mut self, ctx: &mut TickContext<'_, T>) -> Status
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".