pub enum Value<X: RudaPrimitive> {
Multiple(Array<X>),
Single(ValueWrapper<X>),
None,
}Expand description
Whether the accumulator has zero, one or more vectors
Variants§
Implementations§
Source§impl<X: RudaPrimitive> Value<X>
impl<X: RudaPrimitive> Value<X>
pub fn new_Multiple(_0: Array<X>) -> Self
pub fn __expand_new_Multiple( _: &mut Scope, _0: <Array<X> as RudaType>::ExpandType, ) -> ValueExpand<X>
pub fn new_Single(_0: ValueWrapper<X>) -> Self
pub fn __expand_new_Single( _: &mut Scope, _0: <ValueWrapper<X> as RudaType>::ExpandType, ) -> ValueExpand<X>
pub fn new_None() -> Self
pub fn __expand_new_None(_: &mut Scope) -> ValueExpand<X>
Source§impl<X: RudaPrimitive> Value<X>
impl<X: RudaPrimitive> Value<X>
pub fn new_single(val: X) -> Value<X>
pub fn item(&self) -> X
pub fn multiple(&self) -> &Array<X> ⓘ
pub fn multiple_mut(&mut self) -> &mut Array<X>
pub fn assign(&mut self, other: &Value<X>)
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 as RudaType>::ExpandType, ) -> <X as RudaType>::ExpandType
pub fn __expand_multiple( scope: &mut Scope, this: <Self as RudaType>::ExpandType, ) -> <Array<X> as RudaType>::ExpandType ⓘ
pub fn __expand_multiple_mut( scope: &mut Scope, this: <Self as RudaType>::ExpandType, ) -> <Array<X> as RudaType>::ExpandType ⓘ
pub fn __expand_assign( scope: &mut Scope, this: <Self as RudaType>::ExpandType, other: <Value<X> as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
Trait Implementations§
Source§impl<X: RudaPrimitive> RudaDebug for Value<X>
impl<X: RudaPrimitive> RudaDebug for Value<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> RudaType for Value<X>
impl<X: RudaPrimitive> RudaType for Value<X>
type ExpandType = ValueExpand<X>
Auto Trait Implementations§
impl<X> Freeze for Value<X>
impl<X> RefUnwindSafe for Value<X>
impl<X> Send for Value<X>
impl<X> Sync for Value<X>
impl<X> Unpin for Value<X>
impl<X> UnsafeUnpin for Value<X>
impl<X> UnwindSafe for Value<X>
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