pub struct ArrayBuffer { /* private fields */ }
Implementations§
Source§impl ArrayBuffer
impl ArrayBuffer
pub fn new<T: Writable>( gl: Gl, data: &[T], usage: BufferUsage, ) -> Result<ArrayBuffer, GlError>
pub fn set_content<T: Writable>(&self, items: &[T], usage: BufferUsage)
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Clone for ArrayBuffer
impl Clone for ArrayBuffer
Source§fn clone(&self) -> ArrayBuffer
fn clone(&self) -> ArrayBuffer
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 moreSource§impl Debug for ArrayBuffer
impl Debug for ArrayBuffer
Source§impl PartialEq for ArrayBuffer
impl PartialEq for ArrayBuffer
impl Eq for ArrayBuffer
Auto Trait Implementations§
impl Freeze for ArrayBuffer
impl !RefUnwindSafe for ArrayBuffer
impl !Send for ArrayBuffer
impl !Sync for ArrayBuffer
impl Unpin for ArrayBuffer
impl !UnwindSafe for ArrayBuffer
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