pub trait DefaultConst: Sized {
const DEFAULT: Self;
}
Expand description
A const version of Default
.
Required Associated Constants§
Sourceconst DEFAULT: Self
const DEFAULT: Self
The default value for this type. Prefer accessing this by calling value_of
on DefaultOf<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.