Skip to main content

NullableRepresentation

Trait NullableRepresentation 

Source
pub trait NullableRepresentation: Sealed {
    type Layout: LayoutKind;
    type Trap;
    type Niche;
}
Expand description

Representation contributions when adding an empty alternative to a payload.

Add Layout to the payload layout and Trap to its indirect trap classification. Niche describes the resulting nullable representation.

Required Associated Types§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§