pub struct SoundEffect {
pub time: i32,
pub volume: u8,
pub sample: usize,
}Fields§
§time: i32§volume: u8§sample: usizeImplementations§
Trait Implementations§
Source§impl Clone for SoundEffect
impl Clone for SoundEffect
Source§fn clone(&self) -> SoundEffect
fn clone(&self) -> SoundEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SoundEffect
impl Debug for SoundEffect
Source§impl From<SoundEffect> for JsValue
impl From<SoundEffect> for JsValue
Source§fn from(value: SoundEffect) -> Self
fn from(value: SoundEffect) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SoundEffect
impl FromWasmAbi for SoundEffect
Source§impl IntoWasmAbi for SoundEffect
impl IntoWasmAbi for SoundEffect
Source§impl LongRefFromWasmAbi for SoundEffect
impl LongRefFromWasmAbi for SoundEffect
Source§impl OptionFromWasmAbi for SoundEffect
impl OptionFromWasmAbi for SoundEffect
Source§impl OptionIntoWasmAbi for SoundEffect
impl OptionIntoWasmAbi for SoundEffect
Source§impl RefFromWasmAbi for SoundEffect
impl RefFromWasmAbi for SoundEffect
Source§type Anchor = RcRef<SoundEffect>
type Anchor = RcRef<SoundEffect>
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 SoundEffect
impl RefMutFromWasmAbi for SoundEffect
impl SupportsConstructor for SoundEffect
impl SupportsInstanceProperty for SoundEffect
impl SupportsStaticProperty for SoundEffect
Source§impl TryFromJsValue for SoundEffect
impl TryFromJsValue for SoundEffect
Source§impl VectorFromWasmAbi for SoundEffect
impl VectorFromWasmAbi for SoundEffect
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SoundEffect]>
Source§impl VectorIntoJsValue for SoundEffect
impl VectorIntoJsValue for SoundEffect
fn vector_into_jsvalue(vector: Box<[SoundEffect]>) -> JsValue
Source§impl VectorIntoWasmAbi for SoundEffect
impl VectorIntoWasmAbi for SoundEffect
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SoundEffect]>) -> Self::Abi
Source§impl WasmDescribeVector for SoundEffect
impl WasmDescribeVector for SoundEffect
Auto Trait Implementations§
impl Freeze for SoundEffect
impl RefUnwindSafe for SoundEffect
impl Send for SoundEffect
impl Sync for SoundEffect
impl Unpin for SoundEffect
impl UnsafeUnpin for SoundEffect
impl UnwindSafe for SoundEffect
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<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.