pub struct AttributeCreateContext { /* private fields */ }Expand description
Context that is used when a new attribute is created
Implementations§
Source§impl AttributeCreateContext
impl AttributeCreateContext
Sourcepub fn new(
gl: WebGl2RenderingContext,
now: f64,
webgl_buffer: WebGlBuffer,
attribute_location: AttributeLocation,
) -> Self
pub fn new( gl: WebGl2RenderingContext, now: f64, webgl_buffer: WebGlBuffer, attribute_location: AttributeLocation, ) -> Self
@todo: make this into a builder pattern
pub fn gl(&self) -> &WebGl2RenderingContext
pub fn now(&self) -> f64
pub fn webgl_buffer(&self) -> &WebGlBuffer
pub fn attribute_location(&self) -> &AttributeLocation
Trait Implementations§
Source§impl Clone for AttributeCreateContext
impl Clone for AttributeCreateContext
Source§fn clone(&self) -> AttributeCreateContext
fn clone(&self) -> AttributeCreateContext
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 AttributeCreateContext
impl Debug for AttributeCreateContext
Source§impl From<&AttributeCreateContext> for AttributeCreateContextJs
impl From<&AttributeCreateContext> for AttributeCreateContextJs
Source§fn from(attribute_create_context: &AttributeCreateContext) -> Self
fn from(attribute_create_context: &AttributeCreateContext) -> Self
Converts to this type from the input type.
Source§impl From<AttributeCreateContext> for AttributeCreateContextJs
impl From<AttributeCreateContext> for AttributeCreateContextJs
Source§fn from(attribute_create_context: AttributeCreateContext) -> Self
fn from(attribute_create_context: AttributeCreateContext) -> Self
Converts to this type from the input type.
Source§impl IntoJsWrapper for &AttributeCreateContext
impl IntoJsWrapper for &AttributeCreateContext
Source§type Result = AttributeCreateContextJs
type Result = AttributeCreateContextJs
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 AttributeCreateContext
impl IntoJsWrapper for AttributeCreateContext
Source§type Result = AttributeCreateContextJs
type Result = AttributeCreateContextJs
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 AttributeCreateContext
impl RefUnwindSafe for AttributeCreateContext
impl !Send for AttributeCreateContext
impl !Sync for AttributeCreateContext
impl Unpin for AttributeCreateContext
impl UnwindSafe for AttributeCreateContext
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