pub struct LaunchableSlice<'a, T>(_);
Expand description
A slice of immutable memory that can be dereferenced on the GPU.
LaunchableSlice
is intended to be passed to a function that executes a
CUDA kernel with the slice as input parameter.
Implementations
sourceimpl<'a, T> LaunchableSlice<'a, T>
impl<'a, T> LaunchableSlice<'a, T>
pub fn as_ptr(&self) -> *const T
sourcepub fn as_launchable_ptr(&self) -> LaunchablePtr<T>
pub fn as_launchable_ptr(&self) -> LaunchablePtr<T>
Returns a launchable pointer to the beginning of the slice.
Trait Implementations
sourceimpl<'a, T: Debug> Debug for LaunchableSlice<'a, T>
impl<'a, T: Debug> Debug for LaunchableSlice<'a, T>
impl<'a, T: DeviceCopy> DeviceCopy for LaunchableSlice<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for LaunchableSlice<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for LaunchableSlice<'a, T> where
T: Sync,
impl<'a, T> Sync for LaunchableSlice<'a, T> where
T: Sync,
impl<'a, T> Unpin for LaunchableSlice<'a, T>
impl<'a, T> UnwindSafe for LaunchableSlice<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more