[][src]Struct luminance::buffer::BufferSlice

pub struct BufferSlice<'a, T> where
    T: 'a, 
{ /* fields omitted */ }

A buffer slice mapped into GPU memory.

Such a slice allows you to read the data contained in a buffer directly via a Rust slice. While a buffer is mapped, the buffer is sealed and no one can use it. You need to drop the BufferSlice in order to unlock the buffer.

Trait Implementations

impl<'a, T> Drop for BufferSlice<'a, T> where
    T: 'a, 
[src]

impl<'a, 'b, T> IntoIterator for &'b BufferSlice<'a, T> where
    T: 'a, 
[src]

type IntoIter = Iter<'b, T>

Which kind of iterator are we turning this into?

type Item = &'b T

The type of the elements being iterated over.

impl<'a, T> Deref for BufferSlice<'a, T> where
    T: 'a, 
[src]

type Target = [T]

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, T> Unpin for BufferSlice<'a, T>

impl<'a, T> !Sync for BufferSlice<'a, T>

impl<'a, T> !Send for BufferSlice<'a, T>

impl<'a, T> !UnwindSafe for BufferSlice<'a, T>

impl<'a, T> !RefUnwindSafe for BufferSlice<'a, T>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]