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.
Required Methods§
fn is_default(&self) -> bool
Implementations on Foreign Types§
Source§impl<T: IsDefault + ?Sized> IsDefault for Box<T>
Available on non-crate feature nostd only.
impl<T: IsDefault + ?Sized> IsDefault for Box<T>
Available on non-crate feature
nostd only.fn is_default(&self) -> bool
Source§impl<T: IsDefault + ?Sized> IsDefault for Rc<T>
Available on non-crate feature nostd only.
impl<T: IsDefault + ?Sized> IsDefault for Rc<T>
Available on non-crate feature
nostd only.