pub struct AnalysisGraph { /* private fields */ }Implementations§
Source§impl AnalysisGraph
impl AnalysisGraph
pub fn render_ascii_dag(&mut self) -> SubtrActorResult<String>
Source§impl AnalysisGraph
impl AnalysisGraph
pub fn new() -> Self
pub fn with_root_state_type<T: 'static>(self) -> Self
pub fn register_root_state<T: 'static>(&mut self)
pub fn with_input_state_type<T: 'static>(self) -> Self
pub fn register_input_state<T: 'static>(&mut self)
pub fn set_root_state<T: 'static>(&mut self, value: T)
pub fn with_node<N>(self, node: N) -> Selfwhere
N: AnalysisNode,
pub fn with_boxed_node(self, node: Box<dyn AnalysisNodeDyn>) -> Self
pub fn push_node<N>(&mut self, node: N)where
N: AnalysisNode,
pub fn push_boxed_node(&mut self, node: Box<dyn AnalysisNodeDyn>)
pub fn resolve(&mut self) -> SubtrActorResult<()>
pub fn on_replay_meta(&mut self, meta: &ReplayMeta) -> SubtrActorResult<()>
pub fn evaluate(&mut self) -> SubtrActorResult<()>
pub fn evaluate_with_state<T: 'static>( &mut self, value: &T, ) -> SubtrActorResult<()>
pub fn evaluate_with_states<'a>( &mut self, input_states: &'a [AnalysisStateRef<'a>], ) -> SubtrActorResult<()>
pub fn finish(&mut self) -> SubtrActorResult<()>
pub fn state<T: 'static>(&self) -> Option<&T>
pub fn node_names(&self) -> impl Iterator<Item = &'static str> + '_
Trait Implementations§
Source§impl Default for AnalysisGraph
impl Default for AnalysisGraph
Source§fn default() -> AnalysisGraph
fn default() -> AnalysisGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnalysisGraph
impl !RefUnwindSafe for AnalysisGraph
impl !Send for AnalysisGraph
impl !Sync for AnalysisGraph
impl Unpin for AnalysisGraph
impl UnsafeUnpin for AnalysisGraph
impl !UnwindSafe for AnalysisGraph
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