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