trait IsDefault: Default {
// Required method
fn is_default(&self) -> bool;
}
Expand description
Checks that type has a default value.
Required Methods§
Sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
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.