[][src]Trait typed_generational_arena::FixedGenerationalIndex

pub trait FixedGenerationalIndex: Copy + Eq {
    fn first_generation() -> Self;
fn generation_lt(&self, other: &Self) -> bool; }

A type which can be used as the index of a generation which may not be able to be incremented

Required methods

fn first_generation() -> Self

Get an object representing the first possible generation

fn generation_lt(&self, other: &Self) -> bool

Compare this generation with another.

Loading content...

Implementors

impl FixedGenerationalIndex for DisableRemoval[src]

impl FixedGenerationalIndex for IgnoreGeneration[src]

impl<T> FixedGenerationalIndex for NonzeroGeneration<T> where
    T: NonZeroAble + One + Add<Output = T> + Copy + Eq + From<<<T as NonZeroAble>::NonZero as NonZero>::Primitive>,
    T::NonZero: PartialOrd + Eq + Copy
[src]

impl<T> FixedGenerationalIndex for NonzeroWrapGeneration<T> where
    T: NonZeroAble + One + Zero + Copy + Eq + WrappingAdd + From<<<T as NonZeroAble>::NonZero as NonZero>::Primitive>,
    T::NonZero: PartialOrd + Eq + Copy
[src]

impl<T: Eq + One + AddAssign + Default + PartialOrd + Copy> FixedGenerationalIndex for T[src]

Loading content...