[][src]Enum agent_safety_layers::AgentN

pub enum AgentN<M, A, D> {
    Z(AgentZ<M, A, D>),
    S(Box<AgentS<M, A, D>>),
}

Stores a agent with N added safety layers.

Variants

Z(AgentZ<M, A, D>)

Core zero agent.

S(Box<AgentS<M, A, D>>)

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]

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).

Auto Trait Implementations

impl<M, A, D> RefUnwindSafe for AgentN<M, A, D> where
    M: RefUnwindSafe

impl<M, A, D> Send for AgentN<M, A, D> where
    M: Send

impl<M, A, D> Sync for AgentN<M, A, D> where
    M: Sync

impl<M, A, D> Unpin for AgentN<M, A, D> where
    M: Unpin

impl<M, A, D> UnwindSafe for AgentN<M, A, D> where
    M: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.