pub struct ItemsBuffer<T: Item> { /* private fields */ }
Implementations§
Source§impl<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§
Source§impl<T: Clone + Item> Clone for ItemsBuffer<T>
impl<T: Clone + Item> Clone for ItemsBuffer<T>
Source§fn clone(&self) -> ItemsBuffer<T>
fn clone(&self) -> ItemsBuffer<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T: Eq + Item> Eq for ItemsBuffer<T>
impl<T: Item> StructuralPartialEq for ItemsBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for ItemsBuffer<T>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more