pub struct UniformLinkJs(/* private fields */);Implementations§
Source§impl UniformLinkJs
impl UniformLinkJs
pub fn new( program_ids: StringArray, uniform_id: String, initialize_callback: UniformCreateUpdateCallbackJs, ) -> Self
pub fn program_ids(&self) -> StringArray
pub fn uniform_id(&self) -> String
pub fn initialize_callback(&self) -> Option<UniformCreateUpdateCallbackJs>
pub fn set_initialize_callback( &mut self, callback: UniformCreateUpdateCallbackJs, )
pub fn should_update_callback(&self) -> Option<UniformShouldUpdateCallbackJs>
pub fn set_should_update_callback( &mut self, callback: UniformShouldUpdateCallbackJs, )
pub fn set_update_callback(&mut self, callback: UniformCreateUpdateCallbackJs)
pub fn update_callback(&self) -> Option<UniformCreateUpdateCallbackJs>
pub fn use_init_callback_for_update(&self) -> bool
pub fn set_use_init_callback_for_update( &mut self, use_init_callback_for_update: bool, )
Source§impl UniformLinkJs
impl UniformLinkJs
pub fn into_inner(self) -> UniformLinkJsInner
Methods from Deref<Target = UniformLinkJsInner>§
Sourcepub fn program_ids(&self) -> &Vec<ProgramId>
pub fn program_ids(&self) -> &Vec<ProgramId>
Gets all program ids that this link is associated with
Sourcepub fn uniform_id(&self) -> &UniformId
pub fn uniform_id(&self) -> &UniformId
Gets the id of the uniform link
Sourcepub fn initialize_callback(&self) -> UniformCreateUpdateCallback
pub fn initialize_callback(&self) -> UniformCreateUpdateCallback
Sourcepub fn set_initialize_callback(
&mut self,
callback: impl Into<UniformCreateUpdateCallback>,
) -> &mut Self
pub fn set_initialize_callback( &mut self, callback: impl Into<UniformCreateUpdateCallback>, ) -> &mut Self
Sourcepub fn should_update_callback(&self) -> Option<UniformShouldUpdateCallback>
pub fn should_update_callback(&self) -> Option<UniformShouldUpdateCallback>
Sourcepub fn set_should_update_callback(
&mut self,
callback: impl Into<UniformShouldUpdateCallback>,
) -> &mut Self
pub fn set_should_update_callback( &mut self, callback: impl Into<UniformShouldUpdateCallback>, ) -> &mut Self
Sourcepub fn update_callback(&self) -> Option<UniformCreateUpdateCallback>
pub fn update_callback(&self) -> Option<UniformCreateUpdateCallback>
Sourcepub fn set_update_callback(
&mut self,
callback: impl Into<UniformCreateUpdateCallback>,
) -> &mut Self
pub fn set_update_callback( &mut self, callback: impl Into<UniformCreateUpdateCallback>, ) -> &mut Self
Sourcepub fn use_init_callback_for_update(&self) -> bool
pub fn use_init_callback_for_update(&self) -> bool
See [Uniform::use_init_callback_for_update]
Sourcepub fn set_use_init_callback_for_update(
&mut self,
use_init_callback_for_update: bool,
) -> &mut Self
pub fn set_use_init_callback_for_update( &mut self, use_init_callback_for_update: bool, ) -> &mut Self
See [Uniform::use_init_callback_for_update]
Trait Implementations§
Source§impl Deref for UniformLinkJs
impl Deref for UniformLinkJs
Source§impl DerefMut for UniformLinkJs
impl DerefMut for UniformLinkJs
Source§fn deref_mut(&mut self) -> &mut UniformLinkJsInner
fn deref_mut(&mut self) -> &mut UniformLinkJsInner
Mutably dereferences the value.
Source§impl From<UniformLink<String, String>> for UniformLinkJs
impl From<UniformLink<String, String>> for UniformLinkJs
Source§fn from(js_program_link_inner: UniformLinkJsInner) -> Self
fn from(js_program_link_inner: UniformLinkJsInner) -> Self
Converts to this type from the input type.
Source§impl From<UniformLinkJs> for JsValue
impl From<UniformLinkJs> for JsValue
Source§fn from(value: UniformLinkJs) -> Self
fn from(value: UniformLinkJs) -> Self
Converts to this type from the input type.
Source§impl From<UniformLinkJs> for UniformLinkJsInner
impl From<UniformLinkJs> for UniformLinkJsInner
Source§fn from(uniform_link_js: UniformLinkJs) -> Self
fn from(uniform_link_js: UniformLinkJs) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for UniformLinkJs
impl FromWasmAbi for UniformLinkJs
Source§impl IntoWasmAbi for UniformLinkJs
impl IntoWasmAbi for UniformLinkJs
Source§impl LongRefFromWasmAbi for UniformLinkJs
impl LongRefFromWasmAbi for UniformLinkJs
Source§impl OptionFromWasmAbi for UniformLinkJs
impl OptionFromWasmAbi for UniformLinkJs
Source§impl OptionIntoWasmAbi for UniformLinkJs
impl OptionIntoWasmAbi for UniformLinkJs
Source§impl RefFromWasmAbi for UniformLinkJs
impl RefFromWasmAbi for UniformLinkJs
Source§type Anchor = RcRef<UniformLinkJs>
type Anchor = RcRef<UniformLinkJs>
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 UniformLinkJs
impl RefMutFromWasmAbi for UniformLinkJs
Source§impl TryFromJsValue for UniformLinkJs
impl TryFromJsValue for UniformLinkJs
Source§impl VectorFromWasmAbi for UniformLinkJs
impl VectorFromWasmAbi for UniformLinkJs
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[UniformLinkJs]>
Source§impl VectorIntoWasmAbi for UniformLinkJs
impl VectorIntoWasmAbi for UniformLinkJs
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[UniformLinkJs]>) -> Self::Abi
Source§impl WasmDescribeVector for UniformLinkJs
impl WasmDescribeVector for UniformLinkJs
impl SupportsConstructor for UniformLinkJs
impl SupportsInstanceProperty for UniformLinkJs
impl SupportsStaticProperty for UniformLinkJs
Auto Trait Implementations§
impl Freeze for UniformLinkJs
impl !RefUnwindSafe for UniformLinkJs
impl !Send for UniformLinkJs
impl !Sync for UniformLinkJs
impl Unpin for UniformLinkJs
impl !UnwindSafe for UniformLinkJs
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.