Skip to main content

CubeOption

Trait CubeOption 

Source
pub trait CubeOption<T>
where T: CubeType,
{ // Provided methods fn new_Some(_0: T) -> Option<T> { ... } fn none_with_default(_0: T) -> Option<T> { ... } fn __expand_none_with_default( _scope: &mut Scope, value: <T as CubeType>::ExpandType, ) -> OptionExpand<T> { ... } }
Expand description

Extensions for Option

Provided Methods§

Source

fn new_Some(_0: T) -> Option<T>

Create a new Option::Some in a kernel

Source

fn none_with_default(_0: T) -> Option<T>

Source

fn __expand_none_with_default( _scope: &mut Scope, value: <T as CubeType>::ExpandType, ) -> OptionExpand<T>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> CubeOption<T> for Option<T>
where T: CubeType,

Implementors§