pub struct RuntimeCell<T: CubeType> { /* private fields */ }Implementations§
Source§impl<T: CubePrimitive> RuntimeCell<T>
impl<T: CubePrimitive> RuntimeCell<T>
Sourcepub fn __expand_new(
scope: &Scope,
init: <T as CubeType>::ExpandType,
) -> <Self as CubeType>::ExpandType
pub fn __expand_new( scope: &Scope, init: <T as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
Create a new runtime cell with the given initial value.
Sourcepub fn __expand_store(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
value: <T as CubeType>::ExpandType,
)
pub fn __expand_store( scope: &Scope, this: &<Self as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, )
Store a new value in the cell.
Sourcepub fn __expand_read(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType
pub fn __expand_read( scope: &Scope, this: &<Self as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
Get the value from the call
Sourcepub fn __expand_consume(
scope: &Scope,
this: <Self as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType
pub fn __expand_consume( scope: &Scope, this: <Self as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
Consume the cell.
Source§impl<S: Scalar, N: Size> RuntimeCell<Vector<S, N>>
impl<S: Scalar, N: Size> RuntimeCell<Vector<S, N>>
Sourcepub fn insert(&mut self, index: usize, value: S)
pub fn insert(&mut self, index: usize, value: S)
Store a new value in the cell at the given index.
Sourcepub fn __expand_extract(
scope: &Scope,
this: &mut <Self as CubeType>::ExpandType,
index: <usize as CubeType>::ExpandType,
) -> <S as CubeType>::ExpandType
pub fn __expand_extract( scope: &Scope, this: &mut <Self as CubeType>::ExpandType, index: <usize as CubeType>::ExpandType, ) -> <S as CubeType>::ExpandType
Extract the value in the cell at the given index.
Sourcepub fn __expand_insert(
scope: &Scope,
this: &mut <Self as CubeType>::ExpandType,
index: <usize as CubeType>::ExpandType,
value: <S as CubeType>::ExpandType,
)
pub fn __expand_insert( scope: &Scope, this: &mut <Self as CubeType>::ExpandType, index: <usize as CubeType>::ExpandType, value: <S as CubeType>::ExpandType, )
Store a new value in the cell at the given index.
Trait Implementations§
Source§impl<T: Clone + CubeType> Clone for RuntimeCell<T>
impl<T: Clone + CubeType> Clone for RuntimeCell<T>
Source§fn clone(&self) -> RuntimeCell<T>
fn clone(&self) -> RuntimeCell<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy + CubeType> Copy for RuntimeCell<T>
Source§impl<T: CubeType> CubeType for RuntimeCell<T>
impl<T: CubeType> CubeType for RuntimeCell<T>
type ExpandType = RuntimeCellExpand<T>
Auto Trait Implementations§
impl<T> Freeze for RuntimeCell<T>where
T: Freeze,
impl<T> RefUnwindSafe for RuntimeCell<T>where
T: RefUnwindSafe,
impl<T> Send for RuntimeCell<T>where
T: Send,
impl<T> Sync for RuntimeCell<T>where
T: Sync,
impl<T> Unpin for RuntimeCell<T>where
T: Unpin,
impl<T> UnsafeUnpin for RuntimeCell<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RuntimeCell<T>where
T: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more