Skip to main content

BuildNone

Trait BuildNone 

Source
pub trait BuildNone<T> {
    // Required methods
    fn none() -> T;
    fn desc() -> &'static str;
}
Expand description

A builder for None values for type T.

Required Methods§

Source

fn none() -> T

Source

fn desc() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Bounded> BuildNone<T> for MaxNone<T>

Source§

impl<T: Bounded> BuildNone<T> for MinNone<T>