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