Trait num_enum::FromPrimitive
source · pub trait FromPrimitive: Sized {
type Primitive: Copy + Eq;
// Required method
fn from_primitive(number: Self::Primitive) -> Self;
}
pub trait FromPrimitive: Sized {
type Primitive: Copy + Eq;
// Required method
fn from_primitive(number: Self::Primitive) -> Self;
}