Trait gfx_core::mapping::Raw [] [src]

pub trait Raw {
    unsafe fn set<T>(&self, index: usize, val: T);
unsafe fn to_slice<T>(&self, len: usize) -> &[T];
unsafe fn to_mut_slice<T>(&self, len: usize) -> &mut [T]; }

Unsafe operations for a buffer mapping

Required Methods

Set the element at index to val. Not bounds-checked.

Important traits for &'a [u8]

Returns a slice of the specified length.

Important traits for &'a [u8]

Returns a mutable slice of the specified length.

Implementors