pub enum ValueExpand<X: RudaPrimitive> {
Multiple(<Array<X> as RudaType>::ExpandType),
Single(<ValueWrapper<X> as RudaType>::ExpandType),
None,
}Variants§
Multiple(<Array<X> as RudaType>::ExpandType)
Single(<ValueWrapper<X> as RudaType>::ExpandType)
None
Implementations§
Source§impl<X: RudaPrimitive> ValueExpand<X>
impl<X: RudaPrimitive> ValueExpand<X>
pub fn __expand_item_method( self, scope: &mut Scope, ) -> <X as RudaType>::ExpandType
pub fn __expand_multiple_method( self, scope: &mut Scope, ) -> <Array<X> as RudaType>::ExpandType ⓘ
pub fn __expand_multiple_mut_method( self, scope: &mut Scope, ) -> <Array<X> as RudaType>::ExpandType ⓘ
pub fn __expand_assign_method( self, scope: &mut Scope, other: <Value<X> as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
pub fn __expand_new_single( scope: &mut Scope, val: <X as RudaType>::ExpandType, ) -> <Value<X> as RudaType>::ExpandType
pub fn __expand_item( scope: &mut Scope, this: Self, ) -> <X as RudaType>::ExpandType
pub fn __expand_multiple( scope: &mut Scope, this: Self, ) -> <Array<X> as RudaType>::ExpandType ⓘ
pub fn __expand_multiple_mut( scope: &mut Scope, this: Self, ) -> <Array<X> as RudaType>::ExpandType ⓘ
pub fn __expand_assign( scope: &mut Scope, this: Self, other: <Value<X> as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
Trait Implementations§
Source§impl<X: RudaPrimitive> Clone for ValueExpand<X>
impl<X: RudaPrimitive> Clone for ValueExpand<X>
Source§impl<X: RudaPrimitive> IntoMut for ValueExpand<X>
impl<X: RudaPrimitive> IntoMut for ValueExpand<X>
Source§impl<X: RudaPrimitive> RudaDebug for ValueExpand<X>
impl<X: RudaPrimitive> RudaDebug for ValueExpand<X>
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<X: RudaPrimitive> RudaEnum for ValueExpand<X>
impl<X: RudaPrimitive> RudaEnum for ValueExpand<X>
type RuntimeValue = ()
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<X> !Send for ValueExpand<X>
impl<X> !Sync for ValueExpand<X>
impl<X> Freeze for ValueExpand<X>where
<Array<X> as RudaType>::ExpandType: Freeze,
<ValueWrapper<X> as RudaType>::ExpandType: Freeze,
impl<X> RefUnwindSafe for ValueExpand<X>where
<Array<X> as RudaType>::ExpandType: RefUnwindSafe,
<ValueWrapper<X> as RudaType>::ExpandType: RefUnwindSafe,
impl<X> Unpin for ValueExpand<X>
impl<X> UnsafeUnpin for ValueExpand<X>where
<Array<X> as RudaType>::ExpandType: UnsafeUnpin,
<ValueWrapper<X> as RudaType>::ExpandType: UnsafeUnpin,
impl<X> UnwindSafe for ValueExpand<X>where
<Array<X> as RudaType>::ExpandType: UnwindSafe,
<ValueWrapper<X> as RudaType>::ExpandType: UnwindSafe,
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