pub enum CubeOptionExpand<T: CubeType> {
Some(<T as CubeType>::ExpandType),
None,
}
Variants§
Some(<T as CubeType>::ExpandType)
None
Implementations§
Source§impl<T: CubeType> CubeOptionExpand<T>
impl<T: CubeType> CubeOptionExpand<T>
pub fn __expand_is_some_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_is_none_method( self, scope: &mut Scope, ) -> <bool as CubeType>::ExpandType
pub fn __expand_unwrap_or_method( self, scope: &mut Scope, fallback: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
pub fn __expand_is_some( scope: &mut Scope, this: Self, ) -> <bool as CubeType>::ExpandType
pub fn __expand_unwrap( scope: &mut Scope, this: Self, ) -> <T as CubeType>::ExpandType
pub fn __expand_is_none( scope: &mut Scope, this: Self, ) -> <bool as CubeType>::ExpandType
pub fn __expand_unwrap_or( scope: &mut Scope, this: Self, fallback: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
Source§impl<T: CubeType> CubeOptionExpand<T>
impl<T: CubeType> CubeOptionExpand<T>
pub fn is_some(&self) -> bool
pub fn unwrap(self) -> T::ExpandType
pub fn is_none(&self) -> bool
pub fn unwrap_or(self, fallback: T::ExpandType) -> T::ExpandType
Trait Implementations§
Source§impl<T: CubeType> Clone for CubeOptionExpand<T>
impl<T: CubeType> Clone for CubeOptionExpand<T>
Source§impl<T: CubeType> CubeDebug for CubeOptionExpand<T>
impl<T: CubeType> CubeDebug for CubeOptionExpand<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
Auto Trait Implementations§
impl<T> Freeze for CubeOptionExpand<T>
impl<T> RefUnwindSafe for CubeOptionExpand<T>
impl<T> Send for CubeOptionExpand<T>
impl<T> Sync for CubeOptionExpand<T>
impl<T> Unpin for CubeOptionExpand<T>
impl<T> UnwindSafe for CubeOptionExpand<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