pub struct RulesBasedMutation;Expand description
Rules ベースの基本 Mutation
NodeRules を使用してノード遷移を制御する標準的な MutationLogic 実装。
Implementations§
Trait Implementations§
Source§impl Clone for RulesBasedMutation
impl Clone for RulesBasedMutation
Source§fn clone(&self) -> RulesBasedMutation
fn clone(&self) -> RulesBasedMutation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RulesBasedMutation
impl Debug for RulesBasedMutation
Source§impl Default for RulesBasedMutation
impl Default for RulesBasedMutation
Source§fn default() -> RulesBasedMutation
fn default() -> RulesBasedMutation
Returns the “default value” for a type. Read more
Source§impl<E, S, R> MutationLogic<ActionNodeData, E, S, R> for RulesBasedMutation
impl<E, S, R> MutationLogic<ActionNodeData, E, S, R> for RulesBasedMutation
Source§fn interpret(
&self,
input: &dyn MutationInput,
_map: &GraphMap<ActionNodeData, E, S>,
_actions: &ActionsConfig,
rules: &R,
_stats: &SwarmStats,
) -> Vec<MapUpdate<ActionNodeData, E, S>>
fn interpret( &self, input: &dyn MutationInput, _map: &GraphMap<ActionNodeData, E, S>, _actions: &ActionsConfig, rules: &R, _stats: &SwarmStats, ) -> Vec<MapUpdate<ActionNodeData, E, S>>
入力を MapUpdate に変換 Read more
Source§fn initialize(
&self,
root_id: MapNodeId,
initial_contexts: &[&str],
rules: &R,
) -> Vec<MapUpdate<ActionNodeData, E, S>>
fn initialize( &self, root_id: MapNodeId, initial_contexts: &[&str], rules: &R, ) -> Vec<MapUpdate<ActionNodeData, E, S>>
初期ノードを展開
Source§fn create_node_data(&self, input: &dyn MutationInput) -> ActionNodeData
fn create_node_data(&self, input: &dyn MutationInput) -> ActionNodeData
ノードデータを生成
Source§fn create_edge_data(&self, _input: &dyn MutationInput) -> E
fn create_edge_data(&self, _input: &dyn MutationInput) -> E
エッジデータを生成
Source§fn initial_state(&self) -> S
fn initial_state(&self) -> S
初期状態を生成
Auto Trait Implementations§
impl Freeze for RulesBasedMutation
impl RefUnwindSafe for RulesBasedMutation
impl Send for RulesBasedMutation
impl Sync for RulesBasedMutation
impl Unpin for RulesBasedMutation
impl UnwindSafe for RulesBasedMutation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more