Struct luminance::buffer::RawBuffer
[−]
[src]
pub struct RawBuffer { /* fields omitted */ }
Raw buffer. Any buffer can be converted to that type. However, keep in mind that even though type erasure is safe, creating a buffer from a raw buffer is not.
Methods
impl RawBuffer
[src]
fn as_slice<T>(&self) -> Result<BufferSlice<T>, BufferError>
Obtain an immutable slice view into the buffer.
fn as_slice_mut<T>(&mut self) -> Result<BufferSliceMut<T>, BufferError>
Obtain a mutable slice view into the buffer.