pub struct WasmEffect { /* private fields */ }
Implementations§
Source§impl WasmEffect
impl WasmEffect
pub fn none() -> WasmEffect
pub fn action(id: u32) -> WasmEffect
pub fn texture(id: u32) -> WasmEffect
pub fn render(id: u32) -> WasmEffect
pub fn block(rect: &WasmRect) -> WasmEffect
pub fn kind(&self) -> String
pub fn as_action(&self) -> Option<u32>
pub fn as_texture(&self) -> Option<u32>
pub fn as_render(&self) -> Option<u32>
pub fn as_block(&self) -> Option<WasmRect>
pub fn offset(&mut self, delta: &WasmDelta)
Trait Implementations§
Source§impl Clone for WasmEffect
impl Clone for WasmEffect
Source§fn clone(&self) -> WasmEffect
fn clone(&self) -> WasmEffect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WasmEffect
impl Debug for WasmEffect
Source§impl From<WasmEffect> for JsValue
impl From<WasmEffect> for JsValue
Source§fn from(value: WasmEffect) -> Self
fn from(value: WasmEffect) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmEffect
impl FromWasmAbi for WasmEffect
Source§impl IntoWasmAbi for WasmEffect
impl IntoWasmAbi for WasmEffect
Source§impl LongRefFromWasmAbi for WasmEffect
impl LongRefFromWasmAbi for WasmEffect
Source§impl OptionFromWasmAbi for WasmEffect
impl OptionFromWasmAbi for WasmEffect
Source§impl OptionIntoWasmAbi for WasmEffect
impl OptionIntoWasmAbi for WasmEffect
Source§impl PartialEq for WasmEffect
impl PartialEq for WasmEffect
Source§impl RefFromWasmAbi for WasmEffect
impl RefFromWasmAbi for WasmEffect
Source§type Anchor = RcRef<WasmEffect>
type Anchor = RcRef<WasmEffect>
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 WasmEffect
impl RefMutFromWasmAbi for WasmEffect
Source§impl TryFromJsValue for WasmEffect
impl TryFromJsValue for WasmEffect
Source§impl VectorFromWasmAbi for WasmEffect
impl VectorFromWasmAbi for WasmEffect
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmEffect]>
Source§impl VectorIntoJsValue for WasmEffect
impl VectorIntoJsValue for WasmEffect
fn vector_into_jsvalue(vector: Box<[WasmEffect]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmEffect
impl VectorIntoWasmAbi for WasmEffect
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmEffect]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmEffect
impl WasmDescribeVector for WasmEffect
Source§impl WasmWrapper<Effect> for WasmEffect
impl WasmWrapper<Effect> for WasmEffect
impl Copy for WasmEffect
impl Eq for WasmEffect
impl StructuralPartialEq for WasmEffect
impl SupportsConstructor for WasmEffect
impl SupportsInstanceProperty for WasmEffect
impl SupportsStaticProperty for WasmEffect
Auto Trait Implementations§
impl Freeze for WasmEffect
impl RefUnwindSafe for WasmEffect
impl Send for WasmEffect
impl Sync for WasmEffect
impl Unpin for WasmEffect
impl UnwindSafe for WasmEffect
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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::Abi
Source§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
.