pub struct StaticKnowledge { /* private fields */ }Expand description
Test helper: returns pre-configured argument positions.
Implementations§
Source§impl StaticKnowledge
impl StaticKnowledge
Sourcepub fn add_arguments(
&mut self,
actor: &str,
action: &str,
positions: Vec<ArgumentPosition>,
)
pub fn add_arguments( &mut self, actor: &str, action: &str, positions: Vec<ArgumentPosition>, )
Register arguments for an actor performing an action.
Sourcepub fn add_counter_arguments(
&mut self,
actor: &str,
action: &str,
positions: Vec<ArgumentPosition>,
)
pub fn add_counter_arguments( &mut self, actor: &str, action: &str, positions: Vec<ArgumentPosition>, )
Register counter-arguments for an actor against an action.
Trait Implementations§
Source§impl ArgumentKnowledge for StaticKnowledge
impl ArgumentKnowledge for StaticKnowledge
Source§fn arguments_for_action(
&self,
actor: &str,
action_name: &str,
_action_bindings: &HashMap<String, String>,
) -> Vec<ArgumentPosition>
fn arguments_for_action( &self, actor: &str, action_name: &str, _action_bindings: &HashMap<String, String>, ) -> Vec<ArgumentPosition>
What arguments can
actor make in support of performing action?Source§fn counter_arguments(
&self,
actor: &str,
action_name: &str,
_proposer_arguments: &[ArgumentPosition],
) -> Vec<ArgumentPosition>
fn counter_arguments( &self, actor: &str, action_name: &str, _proposer_arguments: &[ArgumentPosition], ) -> Vec<ArgumentPosition>
What counter-arguments can
actor make against action?Source§impl Debug for StaticKnowledge
impl Debug for StaticKnowledge
Source§impl Default for StaticKnowledge
impl Default for StaticKnowledge
Source§fn default() -> StaticKnowledge
fn default() -> StaticKnowledge
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StaticKnowledge
impl RefUnwindSafe for StaticKnowledge
impl Send for StaticKnowledge
impl Sync for StaticKnowledge
impl Unpin for StaticKnowledge
impl UnsafeUnpin for StaticKnowledge
impl UnwindSafe for StaticKnowledge
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