Trait base_traits::IsDefault

source ·
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§

source

fn is_default(&self) -> bool

Implementations on Foreign Types§

source§

impl<T: IsDefault + ?Sized> IsDefault for Box<T>

source§

impl<T: IsDefault + ?Sized> IsDefault for Rc<T>

Implementors§