pub trait IsDefault {
// Required method
fn is_default(&self) -> bool;
}Expand description
Trait defining instance method is_default() : bool that allows a type
instance to indicate whether it holds the “default” value.
pub trait IsDefault {
// Required method
fn is_default(&self) -> bool;
}Trait defining instance method is_default() : bool that allows a type
instance to indicate whether it holds the “default” value.