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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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
impl Eq for ArrayBuffer
Source§impl PartialEq for ArrayBuffer
impl PartialEq for ArrayBuffer
Source§fn eq(&self, other: &ArrayBuffer) -> bool
fn eq(&self, other: &ArrayBuffer) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
impl !RefUnwindSafe for ArrayBuffer
impl !Send for ArrayBuffer
impl !Sync for ArrayBuffer
impl !UnwindSafe for ArrayBuffer
impl Freeze for ArrayBuffer
impl Unpin for ArrayBuffer
impl UnsafeUnpin 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