pub trait ConstDataStruct {
const DEFAULT: Self;
}
Expand description
The macro’s const
option will implement this trait for the structure.
Required Associated Constants§
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.