Trait checked_enum::CheckedEnum
source · 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;
}
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;
}