Skip to main content

CubeOptionDefault

Trait CubeOptionDefault 

Source
pub trait CubeOptionDefault<T: CubeType + Default + IntoRuntime>: CubeOption<T> {
    // Provided method
    fn new_None() -> Option<T> { ... }
}
Expand description

Extensions for Option that require default

Provided Methods§

Source

fn new_None() -> Option<T>

Create a new Option::None in a kernel

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: CubeType + Default + IntoRuntime> CubeOptionDefault<T> for Option<T>

Implementors§