pub struct Node { /* private fields */ }
Implementations§
Source§impl Node
impl Node
pub fn new<F>(name: impl Into<String>, func: F) -> Self
pub fn add_successor( &mut self, action: impl Into<String>, node: Node, ) -> &mut Self
pub fn next(&mut self, node: Node) -> &mut Self
pub fn set_params(&mut self, params: Params)
pub fn get_params(&self) -> &Params
pub fn get_successor(&self, action: &str) -> Option<&Node>
pub fn has_successors(&self) -> bool
pub fn run(&self, shared: &mut (dyn Any + Send)) -> Result<()>
pub fn run_recursive(&self, shared: &mut (dyn Any + Send)) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl !RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl !UnwindSafe for Node
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