Skip to main content

OptionExt

Trait OptionExt 

Source
pub trait OptionExt<T>
where T: CubeType,
{ // Required methods fn __expand_unwrap_or_else_method( self, _scope: &mut Scope, other: impl FnOnce(&mut Scope) -> <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType; fn __expand_unwrap_or_method( self, _scope: &mut Scope, other: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType; }

Required Methods§

Source

fn __expand_unwrap_or_else_method( self, _scope: &mut Scope, other: impl FnOnce(&mut Scope) -> <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

Source

fn __expand_unwrap_or_method( self, _scope: &mut Scope, other: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

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> OptionExt<T> for Option<T>
where T: CubeType + Into<<T as CubeType>::ExpandType>,

Source§

fn __expand_unwrap_or_else_method( self, scope: &mut Scope, other: impl FnOnce(&mut Scope) -> <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

Source§

fn __expand_unwrap_or_method( self, _scope: &mut Scope, other: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

Implementors§