Struct total_space::ContainerOf2TypeData[][src]

pub struct ContainerOf2TypeData<State: DataLike, Part1: DataLike, Part2: DataLike, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> { /* fields omitted */ }

The data we need to implement an container agent type.

This should be placed in a Singleton to allow the agent states to get services from it.

Implementations

impl<State: DataLike, Part1: DataLike, Part2: DataLike, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>[src]

pub fn new(
    name: &'static str,
    instances: Instances,
    part1_type: Rc<dyn PartType<Part1, StateId>>,
    part2_type: Rc<dyn PartType<Part2, StateId>>,
    prev_type: Rc<dyn AgentType<StateId, Payload>>
) -> Self
[src]

Create new agent type data with the specified name and number of instances.

impl<State: DataLike + ContainerOf2State<State, Part1, Part2, Payload>, Part1: DataLike + AgentState<Part1, Payload>, Part2: DataLike + AgentState<Part2, Payload>, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>[src]

pub fn set_order(&mut self, instance: usize, order: usize)[src]

Set the horizontal order of an instance of the agent in a sequence diagram.

Trait Implementations

impl<State: DataLike + ContainerOf2State<State, Part1, Part2, Payload>, Part1: DataLike + AgentState<Part1, Payload>, Part2: DataLike + AgentState<Part2, Payload>, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> AgentInstances<StateId, Payload> for ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>[src]

impl<State: DataLike + ContainerOf2State<State, Part1, Part2, Payload>, Part1: DataLike + AgentState<Part1, Payload>, Part2: DataLike + AgentState<Part2, Payload>, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> AgentType<StateId, Payload> for ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>[src]

impl<State: DataLike, Part1: DataLike, Part2: DataLike, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> Name for ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>[src]

Auto Trait Implementations

impl<State, Part1, Part2, StateId, Payload, const MAX_PARTS: usize> !RefUnwindSafe for ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>

impl<State, Part1, Part2, StateId, Payload, const MAX_PARTS: usize> !Send for ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>

impl<State, Part1, Part2, StateId, Payload, const MAX_PARTS: usize> !Sync for ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>

impl<State, Part1, Part2, StateId, Payload, const MAX_PARTS: usize> Unpin for ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS> where
    Payload: Unpin,
    State: Unpin,
    StateId: Unpin

impl<State, Part1, Part2, StateId, Payload, const MAX_PARTS: usize> !UnwindSafe for ContainerOf2TypeData<State, Part1, Part2, StateId, Payload, MAX_PARTS>

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.