PrimitiveEnum

Trait PrimitiveEnum 

Source
pub unsafe trait PrimitiveEnum: Copy {
    type Layout: PrimitiveEnumLayoutTrait;
}
Expand description

Indicates that Self is a primitive enum type, meaning that it is an enum with a #[repr(primitive_type)] attribute.

§Safety

The implementors must ensure that Layout exactly describes Self.

Required Associated Types§

Source

type Layout: PrimitiveEnumLayoutTrait

The layout of Self.

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.

Implementors§