pub trait NotDefault {
const IS_DEFAULT: bool = false;
const FN_DEFAULT: FnDefaultRaw = {ds::types::unimpl_default as unsafe fn(*mut u8)};
}Expand description
A helper trait for TypeHelper to detect not Default types.
See TypeHelper documentation for more details.
Provided Associated Constants§
const IS_DEFAULT: bool = false
const FN_DEFAULT: FnDefaultRaw = {ds::types::unimpl_default as unsafe fn(*mut u8)}
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.