Struct webgl_rc::data_buffer::ArrayBuffer
source · [−]pub struct ArrayBuffer { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for ArrayBuffer
impl Clone for ArrayBuffer
sourcefn clone(&self) -> ArrayBuffer
fn clone(&self) -> ArrayBuffer
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 Debug for ArrayBuffer
impl Debug for ArrayBuffer
sourceimpl PartialEq<ArrayBuffer> for ArrayBuffer
impl PartialEq<ArrayBuffer> for ArrayBuffer
sourcefn eq(&self, other: &ArrayBuffer) -> bool
fn eq(&self, other: &ArrayBuffer) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for ArrayBuffer
Auto Trait Implementations
impl !RefUnwindSafe for ArrayBuffer
impl !Send for ArrayBuffer
impl !Sync for ArrayBuffer
impl Unpin for ArrayBuffer
impl !UnwindSafe for ArrayBuffer
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