Struct webgl_rc::data_buffer::ItemsBuffer
source · [−]pub struct ItemsBuffer<T: Item> { /* private fields */ }
Implementations
sourceimpl<T: Item> ItemsBuffer<T>
impl<T: Item> ItemsBuffer<T>
pub fn new(
gl: Gl,
data: &[T],
usage: BufferUsage
) -> Result<ItemsBuffer<T>, GlError>
pub fn set_content(&self, items: &[T], usage: BufferUsage)
pub fn len(&self) -> usize
Trait Implementations
sourceimpl<T: Clone + Item> Clone for ItemsBuffer<T>
impl<T: Clone + Item> Clone for ItemsBuffer<T>
sourcefn clone(&self) -> ItemsBuffer<T>
fn clone(&self) -> ItemsBuffer<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug + Item> Debug for ItemsBuffer<T>
impl<T: Debug + Item> Debug for ItemsBuffer<T>
sourceimpl<T: PartialEq + Item> PartialEq<ItemsBuffer<T>> for ItemsBuffer<T>
impl<T: PartialEq + Item> PartialEq<ItemsBuffer<T>> for ItemsBuffer<T>
sourcefn eq(&self, other: &ItemsBuffer<T>) -> bool
fn eq(&self, other: &ItemsBuffer<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<T: Eq + Item> Eq for ItemsBuffer<T>
impl<T: Item> StructuralEq for ItemsBuffer<T>
impl<T: Item> StructuralPartialEq for ItemsBuffer<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for ItemsBuffer<T>
impl<T> !Send for ItemsBuffer<T>
impl<T> !Sync for ItemsBuffer<T>
impl<T> Unpin for ItemsBuffer<T> where
T: Unpin,
impl<T> !UnwindSafe for ItemsBuffer<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more