pub struct WasmRandomItem {
pub chance: i32,
pub id: Uint8Array,
}Fields§
§chance: i32§id: Uint8ArrayTrait Implementations§
Source§impl Clone for WasmRandomItem
impl Clone for WasmRandomItem
Source§fn clone(&self) -> WasmRandomItem
fn clone(&self) -> WasmRandomItem
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 WasmRandomItem
impl Debug for WasmRandomItem
Source§impl From<RandomItem> for WasmRandomItem
impl From<RandomItem> for WasmRandomItem
Source§fn from(item: RandomItem) -> Self
fn from(item: RandomItem) -> Self
Converts to this type from the input type.
Source§impl From<WasmRandomItem> for JsValue
impl From<WasmRandomItem> for JsValue
Source§fn from(value: WasmRandomItem) -> Self
fn from(value: WasmRandomItem) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmRandomItem
impl FromWasmAbi for WasmRandomItem
Source§impl IntoWasmAbi for WasmRandomItem
impl IntoWasmAbi for WasmRandomItem
Source§impl LongRefFromWasmAbi for WasmRandomItem
impl LongRefFromWasmAbi for WasmRandomItem
Source§impl OptionFromWasmAbi for WasmRandomItem
impl OptionFromWasmAbi for WasmRandomItem
Source§impl OptionIntoWasmAbi for WasmRandomItem
impl OptionIntoWasmAbi for WasmRandomItem
Source§impl RefFromWasmAbi for WasmRandomItem
impl RefFromWasmAbi for WasmRandomItem
Source§type Anchor = RcRef<WasmRandomItem>
type Anchor = RcRef<WasmRandomItem>
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 WasmRandomItem
impl RefMutFromWasmAbi for WasmRandomItem
Source§impl TryFromJsValue for WasmRandomItem
impl TryFromJsValue for WasmRandomItem
Source§impl VectorFromWasmAbi for WasmRandomItem
impl VectorFromWasmAbi for WasmRandomItem
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmRandomItem]>
Source§impl VectorIntoJsValue for WasmRandomItem
impl VectorIntoJsValue for WasmRandomItem
fn vector_into_jsvalue(vector: Box<[WasmRandomItem]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmRandomItem
impl VectorIntoWasmAbi for WasmRandomItem
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmRandomItem]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmRandomItem
impl WasmDescribeVector for WasmRandomItem
impl SupportsConstructor for WasmRandomItem
impl SupportsInstanceProperty for WasmRandomItem
impl SupportsStaticProperty for WasmRandomItem
Auto Trait Implementations§
impl Freeze for WasmRandomItem
impl RefUnwindSafe for WasmRandomItem
impl !Send for WasmRandomItem
impl !Sync for WasmRandomItem
impl Unpin for WasmRandomItem
impl UnwindSafe for WasmRandomItem
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.