PredecessorExceptForLeast

Trait PredecessorExceptForLeast 

Source
pub trait PredecessorExceptForLeast: TryPredecessor + LeastElement { }
Expand description

A partial order where every element but the least element has a unique predecessor.

Implementations of the try_predecessor function must return None if and only if self is the least element of the order.

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 PredecessorExceptForLeast for i8

Source§

impl PredecessorExceptForLeast for i16

Source§

impl PredecessorExceptForLeast for i32

Source§

impl PredecessorExceptForLeast for i64

Source§

impl PredecessorExceptForLeast for i128

Source§

impl PredecessorExceptForLeast for isize

Source§

impl PredecessorExceptForLeast for u8

Source§

impl PredecessorExceptForLeast for u16

Source§

impl PredecessorExceptForLeast for u32

Source§

impl PredecessorExceptForLeast for u64

Source§

impl PredecessorExceptForLeast for u128

Source§

impl PredecessorExceptForLeast for usize

Source§

impl<const N: usize, T> PredecessorExceptForLeast for [T; N]

Implementors§