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