wiwi::builder

Trait AcceptDefault

Source
pub trait AcceptDefault<T>
where Self: AcceptDefaultSealed<T>,
{ // Required method fn unwrap_or_default(self) -> T; }
Expand description

Trait for required items that can take None for convenience, because they implement Default

Required Methods§

Implementors§

Source§

impl<T> AcceptDefault<T> for Option<T>
where T: Default,

Source§

impl<T> AcceptDefault<T> for T