pub trait DataStruct {
// Required method
fn data_default() -> Self;
}
Expand description
The macro’s default
option will implement this trait for the structure.
Required Methods§
Sourcefn data_default() -> Self
fn data_default() -> Self
Returns the default value of the structure.
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.