Trait constellation::Handle
[−]
[src]
pub trait Handle<TIndex, TGeneration>: Clone + Copy + Display { fn new(index: TIndex, generation: TGeneration) -> Self; fn index(&self) -> TIndex; fn generation(&self) -> TGeneration; }
A handle is formed out of an Index and a Generation
Required Methods
fn new(index: TIndex, generation: TGeneration) -> Self
Constructs a new handle.
fn index(&self) -> TIndex
Gets the index component of the handle.
fn generation(&self) -> TGeneration
Gets the generation component of the handle.
Implementors
impl Handle<Index, Generation> for Entity