Struct glium::buffer::BufferViewAnySlice [] [src]

pub struct BufferViewAnySlice<'a> {
    // some fields omitted
}

Slice of a Buffer without any type info.

Methods

impl<'a> BufferAnySlice<'a>

fn get_size(&self) -> usize

Returns the number of bytes in this slice.

fn get_elements_size(&self) -> usize

Returns the size in bytes of each element in the buffer.

fn get_elements_count(&self) -> usize

Returns the number of elements in the buffer.

fn invalidate(&self)

Invalidates the content of the slice. The data becomes undefined.

This operation is a no-op if the backend doesn't support it and for persistent-mapped buffers.

fn get_context(&self) -> &Rc<Context>

Returns the context corresponding to this buffer.

Trait Implementations

impl<'a> Debug for BufferAnySlice<'a>

fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl<'a> Clone for BufferAnySlice<'a>

fn clone(&self) -> BufferAnySlice<'a>

fn clone_from(&mut self, source: &Self)

impl<'a> Copy for BufferAnySlice<'a>