pub trait FfiEnum: Copy + Eq {
type Enum: TryFrom<Self, Error = Error> + Into<Self>;
type Repr: Copy + From<Self> + Into<Self>;
const UNKNOWN: Self;
}
Expand description
Types generated from ffi_enum
implement this trait which provides essential type and constant information.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.