pub struct OptionExpand<T>where
T: CubeType,{ /* private fields */ }Implementations§
Source§impl<T> OptionExpand<T>where
T: CubeType,
impl<T> OptionExpand<T>where
T: CubeType,
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>::ExpandType
pub fn __expand_unwrap_or_method( self, scope: &mut Scope, default: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
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>::ExpandType
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 as CubeType>::ExpandType, <U as CubeType>::ExpandType): Into<<(T, U) as CubeType>::ExpandType>,
OptionExpand<(T, U)>: Assign,
Source§impl<T, U> OptionExpand<(T, U)>where
T: CubeType + IntoRuntime + Default,
<T as CubeType>::ExpandType: Assign,
U: CubeType + IntoRuntime + Default,
<U as CubeType>::ExpandType: Assign,
impl<T, U> OptionExpand<(T, U)>where
T: CubeType + IntoRuntime + Default,
<T as CubeType>::ExpandType: Assign,
U: CubeType + IntoRuntime + Default,
<U as CubeType>::ExpandType: Assign,
pub fn __expand_unzip_method( self, scope: &mut Scope, ) -> <(Option<T>, Option<U>) as CubeType>::ExpandType
Trait Implementations§
Source§impl<T> Assign for OptionExpand<T>
impl<T> Assign for OptionExpand<T>
Source§fn expand_assign(&mut self, scope: &mut Scope, value: OptionExpand<T>)
fn expand_assign(&mut self, scope: &mut Scope, value: OptionExpand<T>)
Assign
value to self in scope.Source§fn init_mut(&self, scope: &mut Scope) -> OptionExpand<T>
fn init_mut(&self, scope: &mut Scope) -> OptionExpand<T>
Create a new mutable variable of this type in
scope.Source§impl<T> Clone for OptionExpand<T>where
T: CubeType,
impl<T> Clone for OptionExpand<T>where
T: CubeType,
Source§fn clone(&self) -> OptionExpand<T>
fn clone(&self) -> OptionExpand<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> CubeDebug for OptionExpand<T>where
T: CubeType,
impl<T> CubeDebug for OptionExpand<T>where
T: CubeType,
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> CubeEnum for OptionExpand<T>where
T: CubeType,
impl<T> CubeEnum for OptionExpand<T>where
T: CubeType,
type RuntimeValue = <T as CubeType>::ExpandType
fn discriminant(&self) -> NativeExpand<i32>
Source§fn runtime_value(self) -> <OptionExpand<T> as CubeEnum>::RuntimeValue
fn runtime_value(self) -> <OptionExpand<T> as CubeEnum>::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
Source§impl<T> IntoMut for OptionExpand<T>where
T: CubeType,
impl<T> IntoMut for OptionExpand<T>where
T: CubeType,
Source§fn into_mut(self, scope: &mut Scope) -> OptionExpand<T>
fn into_mut(self, scope: &mut Scope) -> OptionExpand<T>
Convert the variable into a potentially new mutable variable in
scope, copying if needed.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