pub enum ScalarState<T> {
Empty,
Some(Vec<T>),
}
Expand description
Handles the scalar state of an element type
The scalars are grouped to reduce the number of buffers needed to send data to the compute device.
Variants§
Implementations§
Source§impl<T: NoUninit + AnyBitPattern + CubePrimitive> ScalarState<T>
impl<T: NoUninit + AnyBitPattern + CubePrimitive> ScalarState<T>
Auto Trait Implementations§
impl<T> Freeze for ScalarState<T>
impl<T> RefUnwindSafe for ScalarState<T>where
T: RefUnwindSafe,
impl<T> Send for ScalarState<T>where
T: Send,
impl<T> Sync for ScalarState<T>where
T: Sync,
impl<T> Unpin for ScalarState<T>where
T: Unpin,
impl<T> UnwindSafe for ScalarState<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