Trait Next

Source
pub trait Next: Clone + PartialOrd {
    // Required method
    fn next_checked(&self) -> Option<Self>;

    // Provided method
    fn next_unchecked(&self) -> Self { ... }
}

Required Methods§

Source

fn next_checked(&self) -> Option<Self>

Provided Methods§

Source

fn next_unchecked(&self) -> Self

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.

Implementations on Foreign Types§

Source§

impl Next for i8

Source§

impl Next for i16

Source§

impl Next for i32

Source§

impl Next for i64

Source§

impl Next for i128

Source§

impl Next for isize

Source§

impl Next for u8

Source§

impl Next for u16

Source§

impl Next for u32

Source§

impl Next for u64

Source§

impl Next for u128

Source§

impl Next for usize

Implementors§