Skip to main content

FiniteSequential

Trait FiniteSequential 

Source
pub trait FiniteSequential {
    type Output;

    // Required method
    fn next(&mut self) -> Option<Self::Output>;
}

Required Associated Types§

Source

type Output

The output of this sequential ID generator.

Required Methods§

Source

fn next(&mut self) -> Option<Self::Output>

Requests the next ID.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FiniteSequential for AtomicU8

Source§

type Output = u8

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for AtomicU16

Source§

type Output = u16

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for AtomicU32

Source§

type Output = u32

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for AtomicU64

Source§

type Output = u64

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for AtomicUsize

Source§

type Output = usize

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for u8

Source§

type Output = u8

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for u16

Source§

type Output = u16

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for u32

Source§

type Output = u32

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for u64

Source§

type Output = u64

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for u128

Source§

type Output = u128

Source§

fn next(&mut self) -> Option<Self::Output>

Source§

impl FiniteSequential for usize

Source§

type Output = usize

Source§

fn next(&mut self) -> Option<Self::Output>

Implementors§