pub struct WasmMapInfo {
pub map_info: Option<WasmW3i>,
pub images: Vec<WasmImage>,
}Expand description
Fields§
§map_info: Option<WasmW3i>§images: Vec<WasmImage>Implementations§
Source§impl WasmMapInfo
impl WasmMapInfo
Sourcepub fn new(buffer: Uint8Array) -> Option<Self>
pub fn new(buffer: Uint8Array) -> Option<Self>
Create a new WasmMapInfo from a Uint8Array buffer
Trait Implementations§
Source§impl From<War3MapMetadata> for WasmMapInfo
impl From<War3MapMetadata> for WasmMapInfo
Source§fn from(metadata: War3MapMetadata) -> Self
fn from(metadata: War3MapMetadata) -> Self
Converts to this type from the input type.
Source§impl From<WasmMapInfo> for JsValue
impl From<WasmMapInfo> for JsValue
Source§fn from(value: WasmMapInfo) -> Self
fn from(value: WasmMapInfo) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmMapInfo
impl FromWasmAbi for WasmMapInfo
Source§impl IntoWasmAbi for WasmMapInfo
impl IntoWasmAbi for WasmMapInfo
Source§impl LongRefFromWasmAbi for WasmMapInfo
impl LongRefFromWasmAbi for WasmMapInfo
Source§impl OptionFromWasmAbi for WasmMapInfo
impl OptionFromWasmAbi for WasmMapInfo
Source§impl OptionIntoWasmAbi for WasmMapInfo
impl OptionIntoWasmAbi for WasmMapInfo
Source§impl RefFromWasmAbi for WasmMapInfo
impl RefFromWasmAbi for WasmMapInfo
Source§type Anchor = RcRef<WasmMapInfo>
type Anchor = RcRef<WasmMapInfo>
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 WasmMapInfo
impl RefMutFromWasmAbi for WasmMapInfo
Source§impl TryFromJsValue for WasmMapInfo
impl TryFromJsValue for WasmMapInfo
Source§impl VectorFromWasmAbi for WasmMapInfo
impl VectorFromWasmAbi for WasmMapInfo
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmMapInfo]>
Source§impl VectorIntoJsValue for WasmMapInfo
impl VectorIntoJsValue for WasmMapInfo
fn vector_into_jsvalue(vector: Box<[WasmMapInfo]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmMapInfo
impl VectorIntoWasmAbi for WasmMapInfo
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmMapInfo]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmMapInfo
impl WasmDescribeVector for WasmMapInfo
impl SupportsConstructor for WasmMapInfo
impl SupportsInstanceProperty for WasmMapInfo
impl SupportsStaticProperty for WasmMapInfo
Auto Trait Implementations§
impl Freeze for WasmMapInfo
impl RefUnwindSafe for WasmMapInfo
impl !Send for WasmMapInfo
impl !Sync for WasmMapInfo
impl Unpin for WasmMapInfo
impl UnwindSafe for WasmMapInfo
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> 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.