base_traits

Trait 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§