pub struct BufferLinkJs(/* private fields */);Implementations§
Source§impl BufferLinkJs
impl BufferLinkJs
pub fn new( buffer_id: String, buffer_create_callback: BufferCreateCallbackJs, ) -> Self
pub fn buffer_id(&self) -> String
pub fn create_buffer(&self, gl: WebGl2RenderingContext, now: f64) -> WebGlBuffer
Source§impl BufferLinkJs
impl BufferLinkJs
pub fn into_inner(self) -> BufferLinkJsInner
Methods from Deref<Target = BufferLinkJsInner>§
pub fn buffer_id(&self) -> &BufferId
pub fn create_buffer(&self, gl: WebGl2RenderingContext, now: f64) -> WebGlBuffer
Trait Implementations§
Source§impl Deref for BufferLinkJs
impl Deref for BufferLinkJs
Source§impl DerefMut for BufferLinkJs
impl DerefMut for BufferLinkJs
Source§fn deref_mut(&mut self) -> &mut BufferLinkJsInner
fn deref_mut(&mut self) -> &mut BufferLinkJsInner
Mutably dereferences the value.
Source§impl From<BufferLinkJs> for BufferLinkJsInner
impl From<BufferLinkJs> for BufferLinkJsInner
Source§fn from(buffer_link_js: BufferLinkJs) -> Self
fn from(buffer_link_js: BufferLinkJs) -> Self
Converts to this type from the input type.
Source§impl From<BufferLinkJs> for JsValue
impl From<BufferLinkJs> for JsValue
Source§fn from(value: BufferLinkJs) -> Self
fn from(value: BufferLinkJs) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BufferLinkJs
impl FromWasmAbi for BufferLinkJs
Source§impl IntoWasmAbi for BufferLinkJs
impl IntoWasmAbi for BufferLinkJs
Source§impl LongRefFromWasmAbi for BufferLinkJs
impl LongRefFromWasmAbi for BufferLinkJs
Source§impl OptionFromWasmAbi for BufferLinkJs
impl OptionFromWasmAbi for BufferLinkJs
Source§impl OptionIntoWasmAbi for BufferLinkJs
impl OptionIntoWasmAbi for BufferLinkJs
Source§impl RefFromWasmAbi for BufferLinkJs
impl RefFromWasmAbi for BufferLinkJs
Source§type Anchor = RcRef<BufferLinkJs>
type Anchor = RcRef<BufferLinkJs>
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 BufferLinkJs
impl RefMutFromWasmAbi for BufferLinkJs
Source§impl TryFromJsValue for BufferLinkJs
impl TryFromJsValue for BufferLinkJs
Source§impl VectorFromWasmAbi for BufferLinkJs
impl VectorFromWasmAbi for BufferLinkJs
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BufferLinkJs]>
Source§impl VectorIntoWasmAbi for BufferLinkJs
impl VectorIntoWasmAbi for BufferLinkJs
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BufferLinkJs]>) -> Self::Abi
Source§impl WasmDescribeVector for BufferLinkJs
impl WasmDescribeVector for BufferLinkJs
impl SupportsConstructor for BufferLinkJs
impl SupportsInstanceProperty for BufferLinkJs
impl SupportsStaticProperty for BufferLinkJs
Auto Trait Implementations§
impl Freeze for BufferLinkJs
impl !RefUnwindSafe for BufferLinkJs
impl !Send for BufferLinkJs
impl !Sync for BufferLinkJs
impl Unpin for BufferLinkJs
impl !UnwindSafe for BufferLinkJs
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.