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_field_8_Multiple_index_0( &self, ) -> <Array<X> as RudaType>::ExpandType ⓘ
pub fn __expand_field_8_Multiple_reverse_0( &self, ) -> <Array<X> as RudaType>::ExpandType ⓘ
pub fn __expand_field_6_Single_index_0( &self, ) -> <ValueWrapper<X> as RudaType>::ExpandType
pub fn __expand_field_6_Single_reverse_0( &self, ) -> <ValueWrapper<X> as RudaType>::ExpandType
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§fn into_mut(self, scope: &mut Scope) -> Self
fn into_mut(self, scope: &mut Scope) -> Self
Convert the variable into a potentially new mutable variable in
scope, copying if needed.fn expand_reference_value(self, scope: &mut Scope) -> Self
fn expand_inactive_value(self, _scope: &mut Scope) -> Self
fn expand_reference(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_absent_reference(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_reborrow(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_return_reference(self, scope: &mut Scope, writable: bool) -> Self
fn expand_deref(self, _scope: &mut Scope) -> Self
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 snapshot_for_match(self, scope: &mut Scope) -> Self
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