pub trait IsUnit: Default { }Expand description
Trait for types that are unit-like, i.e. have only one possible value.
This is typically used to implement the DefaultExt trait for types that are unit-like.
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.