pub trait Defaultable<O: Ops>: Codec<O> {
// Required method
fn is_default(&self) -> bool;
}Expand description
A trait that represents a subset of types with Default.
This is required for a #[codec(optional)] to work on a type. Also see
impl_defaultable.
Required Methods§
fn is_default(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".