Trait total_space::PartType[][src]

pub trait PartType<State: DataLike, StateId: IndexLike> {
    fn part_state_by_id(&self, state_id: StateId) -> State;
fn part_first_index(&self) -> usize;
fn parts_count(&self) -> usize; }

Allow access to state of parts.

Required methods

fn part_state_by_id(&self, state_id: StateId) -> State[src]

Access the part state by the state identifier.

fn part_first_index(&self) -> usize[src]

The index of the first agent of this type.

fn parts_count(&self) -> usize[src]

The number of agent instances of this type.

Loading content...

Implementors

impl<State: DataLike, StateId: IndexLike, Payload: DataLike> PartType<State, StateId> for AgentTypeData<State, StateId, Payload>[src]

Loading content...