pub struct WasmRandomUnit {
pub chance: i32,
pub ids: Vec<Uint8Array>,
}Fields§
§chance: i32§ids: Vec<Uint8Array>Trait Implementations§
Source§impl Clone for WasmRandomUnit
impl Clone for WasmRandomUnit
Source§fn clone(&self) -> WasmRandomUnit
fn clone(&self) -> WasmRandomUnit
Returns a copy 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 WasmRandomUnit
impl Debug for WasmRandomUnit
Source§impl From<RandomUnit> for WasmRandomUnit
impl From<RandomUnit> for WasmRandomUnit
Source§fn from(unit: RandomUnit) -> Self
fn from(unit: RandomUnit) -> Self
Converts to this type from the input type.
Source§impl From<WasmRandomUnit> for JsValue
impl From<WasmRandomUnit> for JsValue
Source§fn from(value: WasmRandomUnit) -> Self
fn from(value: WasmRandomUnit) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmRandomUnit
impl FromWasmAbi for WasmRandomUnit
Source§impl IntoWasmAbi for WasmRandomUnit
impl IntoWasmAbi for WasmRandomUnit
Source§impl LongRefFromWasmAbi for WasmRandomUnit
impl LongRefFromWasmAbi for WasmRandomUnit
Source§impl OptionFromWasmAbi for WasmRandomUnit
impl OptionFromWasmAbi for WasmRandomUnit
Source§impl OptionIntoWasmAbi for WasmRandomUnit
impl OptionIntoWasmAbi for WasmRandomUnit
Source§impl RefFromWasmAbi for WasmRandomUnit
impl RefFromWasmAbi for WasmRandomUnit
Source§type Anchor = RcRef<WasmRandomUnit>
type Anchor = RcRef<WasmRandomUnit>
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 WasmRandomUnit
impl RefMutFromWasmAbi for WasmRandomUnit
Source§impl TryFromJsValue for WasmRandomUnit
impl TryFromJsValue for WasmRandomUnit
Source§impl VectorFromWasmAbi for WasmRandomUnit
impl VectorFromWasmAbi for WasmRandomUnit
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmRandomUnit]>
Source§impl VectorIntoJsValue for WasmRandomUnit
impl VectorIntoJsValue for WasmRandomUnit
fn vector_into_jsvalue(vector: Box<[WasmRandomUnit]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmRandomUnit
impl VectorIntoWasmAbi for WasmRandomUnit
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmRandomUnit]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmRandomUnit
impl WasmDescribeVector for WasmRandomUnit
impl SupportsConstructor for WasmRandomUnit
impl SupportsInstanceProperty for WasmRandomUnit
impl SupportsStaticProperty for WasmRandomUnit
Auto Trait Implementations§
impl Freeze for WasmRandomUnit
impl RefUnwindSafe for WasmRandomUnit
impl !Send for WasmRandomUnit
impl !Sync for WasmRandomUnit
impl Unpin for WasmRandomUnit
impl UnwindSafe for WasmRandomUnit
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.