pub trait CheckedEnum: Sized + 'static {
    type Storage: Copy + Clone + 'static;

    fn try_from_storage(val: Self::Storage) -> Option<Self>;
    fn to_storage(self) -> Self::Storage;
}

Required Associated Types§

Required Methods§

Implementors§