pub struct BufferCreateContext { /* private fields */ }Expand description
Context used when creating a buffer–passed as an argument to the callback
Implementations§
Source§impl BufferCreateContext
impl BufferCreateContext
pub fn new(gl: WebGl2RenderingContext, now: f64) -> Self
pub fn gl(&self) -> &WebGl2RenderingContext
pub fn now(&self) -> f64
Trait Implementations§
Source§impl Clone for BufferCreateContext
impl Clone for BufferCreateContext
Source§fn clone(&self) -> BufferCreateContext
fn clone(&self) -> BufferCreateContext
Returns a duplicate 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 BufferCreateContext
impl Debug for BufferCreateContext
Source§impl From<&BufferCreateContext> for BufferCreateContextJs
impl From<&BufferCreateContext> for BufferCreateContextJs
Source§fn from(attribute_create_context: &BufferCreateContext) -> Self
fn from(attribute_create_context: &BufferCreateContext) -> Self
Converts to this type from the input type.
Source§impl From<BufferCreateContext> for BufferCreateContextJs
impl From<BufferCreateContext> for BufferCreateContextJs
Source§fn from(attribute_create_context: BufferCreateContext) -> Self
fn from(attribute_create_context: BufferCreateContext) -> Self
Converts to this type from the input type.
Source§impl IntoJsWrapper for &BufferCreateContext
impl IntoJsWrapper for &BufferCreateContext
Source§type Result = BufferCreateContextJs
type Result = BufferCreateContextJs
This is the type that should returned from
into_js_wrapperSource§fn into_js_wrapper(self) -> Self::Result
fn into_js_wrapper(self) -> Self::Result
Converts a value into another value that can be converted into a
JsValueSource§impl IntoJsWrapper for BufferCreateContext
impl IntoJsWrapper for BufferCreateContext
Source§type Result = BufferCreateContextJs
type Result = BufferCreateContextJs
This is the type that should returned from
into_js_wrapperSource§fn into_js_wrapper(self) -> Self::Result
fn into_js_wrapper(self) -> Self::Result
Converts a value into another value that can be converted into a
JsValueAuto Trait Implementations§
impl Freeze for BufferCreateContext
impl RefUnwindSafe for BufferCreateContext
impl !Send for BufferCreateContext
impl !Sync for BufferCreateContext
impl Unpin for BufferCreateContext
impl UnwindSafe for BufferCreateContext
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