pub struct SingleLane<T: GpuValue, const LANE: u8> { /* private fields */ }Expand description
A value that exists ONLY in a specific lane.
Models the result of a reduction — only one lane has the answer. Prevents the common bug of reading a reduction result from all lanes (undefined behavior in CUDA).
Implementations§
Trait Implementations§
Source§impl<T: Clone + GpuValue, const LANE: u8> Clone for SingleLane<T, LANE>
impl<T: Clone + GpuValue, const LANE: u8> Clone for SingleLane<T, LANE>
Source§fn clone(&self) -> SingleLane<T, LANE>
fn clone(&self) -> SingleLane<T, LANE>
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 moreimpl<T: Copy + GpuValue, const LANE: u8> Copy for SingleLane<T, LANE>
impl<T: GpuValue, const LANE: u8> StructuralPartialEq for SingleLane<T, LANE>
Auto Trait Implementations§
impl<T, const LANE: u8> Freeze for SingleLane<T, LANE>where
T: Freeze,
impl<T, const LANE: u8> RefUnwindSafe for SingleLane<T, LANE>where
T: RefUnwindSafe,
impl<T, const LANE: u8> Send for SingleLane<T, LANE>
impl<T, const LANE: u8> Sync for SingleLane<T, LANE>
impl<T, const LANE: u8> Unpin for SingleLane<T, LANE>where
T: Unpin,
impl<T, const LANE: u8> UnsafeUnpin for SingleLane<T, LANE>where
T: UnsafeUnpin,
impl<T, const LANE: u8> UnwindSafe for SingleLane<T, LANE>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