Trait range_traits::Enum
source · pub trait Enum: Sized + PartialOrd {
// Required methods
fn pred(&self) -> Option<Self>;
fn succ(&self) -> Option<Self>;
}Expand description
Type for which instances can be entirely enumerated.
pub trait Enum: Sized + PartialOrd {
// Required methods
fn pred(&self) -> Option<Self>;
fn succ(&self) -> Option<Self>;
}Type for which instances can be entirely enumerated.