Struct glium::buffer::BufferAnySlice
[−]
[src]
pub struct BufferAnySlice<'a> { // some fields omitted }
Slice of a Buffer
without any type info.
Methods
impl<'a> BufferAnySlice<'a>
[src]
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> Clone for BufferAnySlice<'a>
[src]
fn clone(&self) -> BufferAnySlice<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more