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