[−][src]Enum agent_safety_layers::AgentN
Stores a agent with N added safety layers.
Variants
Z(AgentZ<M, A, D>)
Core zero agent.
Successor agent.
Methods
impl<M, A, D> AgentN<M, A, D>
[src]
pub fn z(&mut self) -> &mut AgentZ<M, A, D>
[src]
Returns the core zero agent.
pub fn dec(self) -> AgentN<M, A, D>
[src]
Decreases one safety level.
pub fn inc(self) -> AgentN<M, A, D>
[src]
Increase one safety level.
Trait Implementations
impl<M, A, D> Agent for AgentN<M, A, D> where
A: PartialEq,
[src]
A: PartialEq,
type Model = M
The type of the model.
type Action = A
The type of actions.
type Delta = D
The type of delta changes (caused by mutation).
fn update_model(&mut self, model: M)
[src]
fn decide(&mut self) -> Decision<A>
[src]
fn act(&mut self, action: A)
[src]
fn mutate(&mut self) -> D
[src]
fn undo(&mut self, delta: D)
[src]
Auto Trait Implementations
impl<M, A, D> RefUnwindSafe for AgentN<M, A, D> where
M: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, A, D> Send for AgentN<M, A, D> where
M: Send,
M: Send,
impl<M, A, D> Sync for AgentN<M, A, D> where
M: Sync,
M: Sync,
impl<M, A, D> Unpin for AgentN<M, A, D> where
M: Unpin,
M: Unpin,
impl<M, A, D> UnwindSafe for AgentN<M, A, D> where
M: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,