cellular_raza_concepts

Trait Id

Source
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§

Source

type Identifier

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

Required Methods§

Source

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

Retrieves the Identifier from the object.

Source

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

Returns a reference to the id of the object.

Implementors§

Source§

impl<Cel> Id for CellAgentBox<Cel>