pub enum ArrayArg<'a, R: Runtime> {
Handle {
handle: ArrayHandleRef<'a, R>,
vectorization_factor: u8,
},
Alias {
input_pos: usize,
},
}
Variants§
Handle
The array is passed with an array handle.
Fields
§
handle: ArrayHandleRef<'a, R>
The array handle.
Alias
The array is aliasing another input array.
Implementations§
Trait Implementations§
Source§impl<R: Runtime> ArgSettings<R> for ArrayArg<'_, R>
impl<R: Runtime> ArgSettings<R> for ArrayArg<'_, R>
Source§fn register(&self, launcher: &mut KernelLauncher<R>)
fn register(&self, launcher: &mut KernelLauncher<R>)
Register the information of an argument to the KernelLauncher.
Auto Trait Implementations§
impl<'a, R> Freeze for ArrayArg<'a, R>
impl<'a, R> RefUnwindSafe for ArrayArg<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for ArrayArg<'a, R>
impl<'a, R> Sync for ArrayArg<'a, R>
impl<'a, R> Unpin for ArrayArg<'a, R>where
R: Unpin,
impl<'a, R> UnwindSafe for ArrayArg<'a, R>where
R: 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