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

Constructs a new handle.

Gets the index component of the handle.

Gets the generation component of the handle.

Implementors