pub struct Factory { /* private fields */ }Implementations§
Source§impl Factory
impl Factory
pub fn new() -> Factory
pub fn blackboard(&mut self) -> &Blackboard
pub fn set_blackboard(&mut self, blackboard: Blackboard)
pub fn register_node<F>( &mut self, name: impl AsRef<str>, node_fn: F, node_type: NodeCategory, )
pub fn create_sync_tree_from_text( &mut self, text: String, blackboard: &Blackboard, ) -> Result<SyncTree, ParseError>
pub async fn create_async_tree_from_text( &mut self, text: String, blackboard: &Blackboard, ) -> Result<AsyncTree, ParseError>
pub fn instantiate_sync_tree( &mut self, blackboard: &Blackboard, main_tree_id: &str, ) -> Result<SyncTree, ParseError>
pub async fn instantiate_async_tree( &mut self, blackboard: &Blackboard, main_tree_id: &str, ) -> Result<AsyncTree, ParseError>
pub fn register_bt_from_text(&mut self, xml: String) -> Result<(), ParseError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Factory
impl !RefUnwindSafe for Factory
impl Send for Factory
impl Sync for Factory
impl Unpin for Factory
impl !UnwindSafe for Factory
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