Trait gfx::device::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

unsafe fn set<T>(&self, index: usize, val: T)

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

unsafe fn to_slice<T>(&self, len: usize) -> &[T]

Returns a slice of the specified length.

unsafe fn to_mut_slice<T>(&self, len: usize) -> &mut [T]

Returns a mutable slice of the specified length.

Implementors