pub struct OptionExpand<T: CubeType> { /* private fields */ }Implementations§
Source§impl<T: CubeType> OptionExpand<T>
impl<T: CubeType> OptionExpand<T>
pub fn __expand_is_some_method( self, scope: &mut Scope, ) -> <bool as CubeType>::ExpandType
pub fn __expand_is_none_method( self, scope: &mut Scope, ) -> <bool as CubeType>::ExpandType
pub fn __expand_unwrap_method(
self,
scope: &mut Scope,
) -> <T as CubeType>::ExpandTypewhere
T::ExpandType: Assign,
pub fn __expand_unwrap_or_method(
self,
scope: &mut Scope,
default: <T as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandTypewhere
T::ExpandType: Assign,
pub fn __expand_unwrap_or_default_method( self, scope: &mut Scope, ) -> <T as CubeType>::ExpandType
pub fn __expand_and_method<U>( self, scope: &mut Scope, optb: <Option<U> as CubeType>::ExpandType, ) -> <Option<U> as CubeType>::ExpandType
pub fn __expand_or_method(
self,
scope: &mut Scope,
optb: <Option<T> as CubeType>::ExpandType,
) -> <Option<T> as CubeType>::ExpandTypewhere
T::ExpandType: Assign,
pub fn __expand_xor_method( self, scope: &mut Scope, optb: <Option<T> as CubeType>::ExpandType, ) -> <Option<T> as CubeType>::ExpandType
pub fn __expand_zip_method<U>(
self,
scope: &mut Scope,
other: <Option<U> as CubeType>::ExpandType,
) -> <Option<(T, U)> as CubeType>::ExpandTypewhere
U: CubeType,
(T, U): Default + IntoRuntime,
(T::ExpandType, U::ExpandType): Into<<(T, U) as CubeType>::ExpandType>,
OptionExpand<(T, U)>: Assign,
Source§impl<T: CubeType<ExpandType: Assign> + IntoRuntime + Default, U: CubeType<ExpandType: Assign> + IntoRuntime + Default> OptionExpand<(T, U)>
impl<T: CubeType<ExpandType: Assign> + IntoRuntime + Default, U: CubeType<ExpandType: Assign> + IntoRuntime + Default> OptionExpand<(T, U)>
pub fn __expand_unzip_method( self, scope: &mut Scope, ) -> <(Option<T>, Option<U>) as CubeType>::ExpandType
Trait Implementations§
Source§impl<T: CubeType> Assign for OptionExpand<T>
impl<T: CubeType> Assign for OptionExpand<T>
Source§impl<T: CubeType> Clone for OptionExpand<T>
impl<T: CubeType> Clone for OptionExpand<T>
Source§impl<T: CubeType> CubeDebug for OptionExpand<T>
impl<T: CubeType> CubeDebug for OptionExpand<T>
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl<T: CubeType> CubeEnum for OptionExpand<T>
impl<T: CubeType> CubeEnum for OptionExpand<T>
type RuntimeValue = <T as CubeType>::ExpandType
fn discriminant(&self) -> NativeExpand<i32>
Source§fn runtime_value(self) -> Self::RuntimeValue
fn runtime_value(self) -> Self::RuntimeValue
Return the runtime value of this enum, if only one variant has a value.
Should return () for all other cases.
fn discriminant_of(variant_name: &'static str) -> i32
fn discriminant_of_value(&self, variant_name: &'static str) -> i32
Auto Trait Implementations§
impl<T> Freeze for OptionExpand<T>
impl<T> RefUnwindSafe for OptionExpand<T>
impl<T> !Send for OptionExpand<T>
impl<T> !Sync for OptionExpand<T>
impl<T> Unpin for OptionExpand<T>
impl<T> UnsafeUnpin for OptionExpand<T>
impl<T> UnwindSafe for OptionExpand<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more