Trait Id

pub trait Id {
    type Identifier;

    // Required methods
    fn get_id(&self) -> Self::Identifier;
    fn ref_id(&self) -> &Self::Identifier;
}
Expand description

Specifies how to retrieve a unique identifier of an object.

Required Associated Types§

type Identifier

The identifier type is usually chosen to be completely unique and repeatable across different simulations.

Required Methods§

fn get_id(&self) -> Self::Identifier

Retrieves the Identifier from the object.

fn ref_id(&self) -> &Self::Identifier

Returns a reference to the id of the object.

Implementors§

§

impl<C> Id for CellBox<C>

§

impl<Cel> Id for CellAgentBox<Cel>

§

type Identifier = (u64, u64)

§

impl<Ind, Vox, Cel, Pos, Vel, For, ConcVecExtracellular, ConcBoundaryExtracellular, ConcVecIntracellular> Id for VoxelBox<Ind, Pos, Vel, For, Vox, Cel, ConcVecExtracellular, ConcBoundaryExtracellular, ConcVecIntracellular>