Trait FixedGenerationalIndex

Source
pub trait FixedGenerationalIndex: Copy + Eq {
    // Required methods
    fn first_generation() -> Self;
    fn generation_lt(&self, other: &Self) -> bool;
}
Expand description

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

Required Methods§

Source

fn first_generation() -> Self

Get an object representing the first possible generation

Source

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

Compare this generation with another.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§