Skip to main content

Value

Enum Value 

Source
pub enum Value<X: RudaPrimitive> {
    Multiple(Array<X>),
    Single(ValueWrapper<X>),
    None,
}
Expand description

Whether the accumulator has zero, one or more vectors

Variants§

§

Multiple(Array<X>)

§

Single(ValueWrapper<X>)

Wrap the item to be able to modify it as a field

§

None

Implementations§

Source§

impl<X: RudaPrimitive> Value<X>

Source

pub fn new_Multiple(_0: Array<X>) -> Self

Source

pub fn __expand_new_Multiple( _: &mut Scope, _0: <Array<X> as RudaType>::ExpandType, ) -> ValueExpand<X>

Source

pub fn new_Single(_0: ValueWrapper<X>) -> Self

Source

pub fn __expand_new_Single( _: &mut Scope, _0: <ValueWrapper<X> as RudaType>::ExpandType, ) -> ValueExpand<X>

Source

pub fn new_None() -> Self

Source

pub fn __expand_new_None(_: &mut Scope) -> ValueExpand<X>

Source§

impl<X: RudaPrimitive> Value<X>

Source

pub fn new_single(val: X) -> Value<X>

Source

pub fn item(&self) -> X

Source

pub fn multiple(&self) -> &Array<X> ⓘ

Source

pub fn multiple_mut(&mut self) -> &mut Array<X>

Source

pub fn assign(&mut self, other: &Value<X>)

Source

pub fn __expand_new_single( scope: &mut Scope, val: <X as RudaType>::ExpandType, ) -> <Value<X> as RudaType>::ExpandType

Source

pub fn __expand_item( scope: &mut Scope, this: <Self as RudaType>::ExpandType, ) -> <X as RudaType>::ExpandType

Source

pub fn __expand_multiple( scope: &mut Scope, this: <Self as RudaType>::ExpandType, ) -> <Array<X> as RudaType>::ExpandType ⓘ

Source

pub fn __expand_multiple_mut( scope: &mut Scope, this: <Self as RudaType>::ExpandType, ) -> <Array<X> as RudaType>::ExpandType ⓘ

Source

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>

Source§

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>

Auto Trait Implementations§

§

impl<X> Freeze for Value<X>

§

impl<X> RefUnwindSafe for Value<X>

§

impl<X> Send for Value<X>
where Array<X>: Send, ValueWrapper<X>: Send,

§

impl<X> Sync for Value<X>
where Array<X>: Sync, ValueWrapper<X>: Sync,

§

impl<X> Unpin for Value<X>
where Array<X>: Unpin, ValueWrapper<X>: Unpin,

§

impl<X> UnsafeUnpin for Value<X>

§

impl<X> UnwindSafe for Value<X>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoComptime for T

Source§

fn comptime(self) -> Self

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.