pub struct RuntimeCell<T: CubeType> { /* private fields */ }
Implementations§
Source§impl<T: CubePrimitive> RuntimeCell<T>
impl<T: CubePrimitive> RuntimeCell<T>
pub fn __expand_new( scope: &mut Scope, init: <T as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
pub fn __expand_store( scope: &mut Scope, this: <Self as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
pub fn __expand_read( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
pub fn __expand_consume( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
Source§impl<T: CubeIndexMut> RuntimeCell<T>
impl<T: CubeIndexMut> RuntimeCell<T>
Sourcepub fn store_at(&mut self, index: u32, value: T::Output)
pub fn store_at(&mut self, index: u32, value: T::Output)
Store a new value in the cell at the given index.
pub fn __expand_store_at( scope: &mut Scope, this: <Self as CubeType>::ExpandType, index: <u32 as CubeType>::ExpandType, value: <T::Output as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
Source§impl<T: CubeIndex> RuntimeCell<T>
impl<T: CubeIndex> RuntimeCell<T>
pub fn __expand_read_at( scope: &mut Scope, this: <Self as CubeType>::ExpandType, index: <u32 as CubeType>::ExpandType, ) -> <T::Output as CubeType>::ExpandType
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: CubeType> CubeType for RuntimeCell<T>
impl<T: CubeType> CubeType for RuntimeCell<T>
type ExpandType = RuntimeCellExpand<T>
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
impl<T: Copy + CubeType> Copy for RuntimeCell<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> 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