[][src]Trait typed_generational_arena::GenerationalIndex

pub trait GenerationalIndex: FixedGenerationalIndex {
    fn increment_generation(&mut self);
}

A type which can be used as the index of a generation, which can be incremented

Required methods

fn increment_generation(&mut self)

Increment the generation of this object. May wrap or panic on overflow depending on type.

Loading content...

Implementors

impl GenerationalIndex for IgnoreGeneration[src]

impl<T> GenerationalIndex 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> GenerationalIndex 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> GenerationalIndex for T[src]

Loading content...