pub unsafe trait OneNiche { }
Expand description
Indicates that the type has exactly one niche, which is filled by niche optimization
and so implements Nicheless
in option-like enums (Option<T>
, Result<T, ()>
).
Safety
Type must have exactly one niche.