pub unsafe trait NonExhaustiveMarker<Storage>: GetEnumInfo {
type Marker;
}Expand description
Queries the marker type which describes the layout of this enum,
for use in NonExhaustive’s StableAbi impl.
§Safety
Self::Marker must describe the layout of this enum,
with the size and alignment of Storage,
and using IsExhaustive::nonexhaustive to construct IsExhaustive in
the enum’s TypeLayout.
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.