Type Alias krnl_core::buffer::UnsafeSlice

source ·
pub type UnsafeSlice<'a, T> = BufferBase<UnsafeSliceRepr<'a, T>>;
Expand description

Aliased Type§

struct UnsafeSlice<'a, T> { /* private fields */ }

Implementations§

source§

impl<'a, T: Scalar> UnsafeSlice<'a, T>

source

pub fn as_mut_ptr(&self) -> *mut T

Available on non-target_arch="spirv" only.

A mutable pointer to the buffer’s data.

Trait Implementations§

source§

impl<'a, T: Scalar> From<&'a mut [T]> for UnsafeSlice<'a, T>

Available on non-target_arch="spirv" only.
source§

fn from(slice: &'a mut [T]) -> Self

Converts to this type from the input type.