Trait num_enum::FromPrimitive[][src]

pub trait FromPrimitive: Sized {
    type Primitive: Copy + Eq;
    fn from_primitive(number: Self::Primitive) -> Self;
}

Associated Types

type Primitive: Copy + Eq[src]

Loading content...

Required methods

fn from_primitive(number: Self::Primitive) -> Self[src]

Loading content...

Implementors

Loading content...