Trait from_enum::FromEnum

source ·
pub trait FromEnum<E> {
    // Required method
    fn from_enum(e: &E) -> Option<&Self>;
}
Expand description

Attempts to match the enum E to find a variant with a single field of type Self.

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§