PartialEnum

Trait PartialEnum 

Source
pub trait PartialEnum: PartialOrd + MaybeBounded {
    // Required methods
    fn pred(&self) -> Option<Self>;
    fn succ(&self) -> Option<Self>;
}
Expand description

Type for which instances can be partially enumerated.

Required Methods§

Source

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

Source

fn succ(&self) -> Option<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 PartialEnum for f32

Source§

fn pred(&self) -> Option<f32>

Source§

fn succ(&self) -> Option<f32>

Source§

impl PartialEnum for f64

Source§

fn pred(&self) -> Option<f64>

Source§

fn succ(&self) -> Option<f64>

Implementors§

Source§

impl<T> PartialEnum for T
where T: Enum,