pub struct AttributeLinkJs(/* private fields */);Implementations§
Source§impl AttributeLinkJs
impl AttributeLinkJs
pub fn new( vao_ids: StringArray, buffer_id: String, attribute_id: String, attribute_create_callback: AttributeCreateCallbackJs, ) -> Self
pub fn vao_ids(&self) -> StringArray
pub fn buffer_id(&self) -> String
pub fn attribute_id(&self) -> String
pub fn create_callback(&self) -> Option<AttributeCreateCallbackJs>
pub fn create_attribute( &self, gl: WebGl2RenderingContext, now: f64, webgl_buffer: WebGlBuffer, attribute_location: AttributeLocation, )
Source§impl AttributeLinkJs
impl AttributeLinkJs
pub fn into_inner(self) -> AttributeLinkJsInner
Methods from Deref<Target = AttributeLinkJsInner>§
pub fn vao_ids(&self) -> &[VertexArrayObjectId]
pub fn buffer_id(&self) -> &BufferId
pub fn attribute_id(&self) -> &AttributeId
pub fn create_callback(&self) -> AttributeCreateCallback
Sourcepub fn create_attribute(
&self,
gl: WebGl2RenderingContext,
now: f64,
webgl_buffer: WebGlBuffer,
attribute_location: AttributeLocation,
)
pub fn create_attribute( &self, gl: WebGl2RenderingContext, now: f64, webgl_buffer: WebGlBuffer, attribute_location: AttributeLocation, )
Runs the associated attribute_create_callback to initialize the attribute
Trait Implementations§
Source§impl Deref for AttributeLinkJs
impl Deref for AttributeLinkJs
Source§impl DerefMut for AttributeLinkJs
impl DerefMut for AttributeLinkJs
Source§fn deref_mut(&mut self) -> &mut AttributeLinkJsInner
fn deref_mut(&mut self) -> &mut AttributeLinkJsInner
Mutably dereferences the value.
Source§impl From<AttributeLinkJs> for AttributeLinkJsInner
impl From<AttributeLinkJs> for AttributeLinkJsInner
Source§fn from(js_attribute_link: AttributeLinkJs) -> Self
fn from(js_attribute_link: AttributeLinkJs) -> Self
Converts to this type from the input type.
Source§impl From<AttributeLinkJs> for JsValue
impl From<AttributeLinkJs> for JsValue
Source§fn from(value: AttributeLinkJs) -> Self
fn from(value: AttributeLinkJs) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AttributeLinkJs
impl FromWasmAbi for AttributeLinkJs
Source§impl IntoWasmAbi for AttributeLinkJs
impl IntoWasmAbi for AttributeLinkJs
Source§impl LongRefFromWasmAbi for AttributeLinkJs
impl LongRefFromWasmAbi for AttributeLinkJs
Source§impl OptionFromWasmAbi for AttributeLinkJs
impl OptionFromWasmAbi for AttributeLinkJs
Source§impl OptionIntoWasmAbi for AttributeLinkJs
impl OptionIntoWasmAbi for AttributeLinkJs
Source§impl RefFromWasmAbi for AttributeLinkJs
impl RefFromWasmAbi for AttributeLinkJs
Source§type Anchor = RcRef<AttributeLinkJs>
type Anchor = RcRef<AttributeLinkJs>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for AttributeLinkJs
impl RefMutFromWasmAbi for AttributeLinkJs
Source§impl TryFromJsValue for AttributeLinkJs
impl TryFromJsValue for AttributeLinkJs
Source§impl VectorFromWasmAbi for AttributeLinkJs
impl VectorFromWasmAbi for AttributeLinkJs
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AttributeLinkJs]>
Source§impl VectorIntoWasmAbi for AttributeLinkJs
impl VectorIntoWasmAbi for AttributeLinkJs
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AttributeLinkJs]>) -> Self::Abi
Source§impl WasmDescribeVector for AttributeLinkJs
impl WasmDescribeVector for AttributeLinkJs
impl SupportsConstructor for AttributeLinkJs
impl SupportsInstanceProperty for AttributeLinkJs
impl SupportsStaticProperty for AttributeLinkJs
Auto Trait Implementations§
impl Freeze for AttributeLinkJs
impl !RefUnwindSafe for AttributeLinkJs
impl !Send for AttributeLinkJs
impl !Sync for AttributeLinkJs
impl Unpin for AttributeLinkJs
impl !UnwindSafe for AttributeLinkJs
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.