pub struct ComptimeCell<T>where
T: CubeType,{ /* private fields */ }Expand description
A cell that can store and mutate a cube type during comptime.
Implementations§
Source§impl<T> ComptimeCell<T>
impl<T> ComptimeCell<T>
pub fn new(value: T) -> ComptimeCell<T>
pub fn __expand_new( _scope: &mut Scope, value: <T as CubeType>::ExpandType, ) -> ComptimeCellExpand<T>
pub fn read(&self) -> T
pub fn store(&mut self, value: T)
pub fn __expand_store( context: &mut Scope, this: ComptimeCellExpand<T>, value: <T as CubeType>::ExpandType, )
pub fn __expand_read( scope: &mut Scope, this: ComptimeCellExpand<T>, ) -> <T as CubeType>::ExpandType
Trait Implementations§
Source§impl<T> Clone for ComptimeCell<T>
impl<T> Clone for ComptimeCell<T>
Source§fn clone(&self) -> ComptimeCell<T>
fn clone(&self) -> ComptimeCell<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 moreSource§impl<T> CubeType for ComptimeCell<T>where
T: CubeType,
impl<T> CubeType for ComptimeCell<T>where
T: CubeType,
type ExpandType = ComptimeCellExpand<T>
Auto Trait Implementations§
impl<T> Freeze for ComptimeCell<T>
impl<T> !RefUnwindSafe for ComptimeCell<T>
impl<T> !Send for ComptimeCell<T>
impl<T> !Sync for ComptimeCell<T>
impl<T> Unpin for ComptimeCell<T>
impl<T> UnsafeUnpin for ComptimeCell<T>
impl<T> !UnwindSafe for ComptimeCell<T>
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