pub struct MapAssetNameToNonZeroInt64(/* private fields */);
Implementations§
Source§impl MapAssetNameToNonZeroInt64
impl MapAssetNameToNonZeroInt64
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn insert( &mut self, key: &AssetName, value: NonZeroInt64, ) -> Option<NonZeroInt64>
pub fn get(&self, key: &AssetName) -> Option<NonZeroInt64>
pub fn keys(&self) -> AssetNameList
Trait Implementations§
Source§impl AsRef<OrderedHashMap<AssetName, i64>> for MapAssetNameToNonZeroInt64
impl AsRef<OrderedHashMap<AssetName, i64>> for MapAssetNameToNonZeroInt64
Source§fn as_ref(&self) -> &OrderedHashMap<AssetName, NonZeroInt64>
fn as_ref(&self) -> &OrderedHashMap<AssetName, NonZeroInt64>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for MapAssetNameToNonZeroInt64
impl Clone for MapAssetNameToNonZeroInt64
Source§fn clone(&self) -> MapAssetNameToNonZeroInt64
fn clone(&self) -> MapAssetNameToNonZeroInt64
Returns a duplicate 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 MapAssetNameToNonZeroInt64
impl Debug for MapAssetNameToNonZeroInt64
Source§impl From<MapAssetNameToNonZeroInt64> for JsValue
impl From<MapAssetNameToNonZeroInt64> for JsValue
Source§fn from(value: MapAssetNameToNonZeroInt64) -> Self
fn from(value: MapAssetNameToNonZeroInt64) -> Self
Converts to this type from the input type.
Source§impl From<OrderedHashMap<AssetName, i64>> for MapAssetNameToNonZeroInt64
impl From<OrderedHashMap<AssetName, i64>> for MapAssetNameToNonZeroInt64
Source§fn from(native: OrderedHashMap<AssetName, NonZeroInt64>) -> Self
fn from(native: OrderedHashMap<AssetName, NonZeroInt64>) -> Self
Converts to this type from the input type.
Source§impl Into<OrderedHashMap<AssetName, i64>> for MapAssetNameToNonZeroInt64
impl Into<OrderedHashMap<AssetName, i64>> for MapAssetNameToNonZeroInt64
Source§fn into(self) -> OrderedHashMap<AssetName, NonZeroInt64>
fn into(self) -> OrderedHashMap<AssetName, NonZeroInt64>
Converts this type into the (usually inferred) input type.
Source§impl RefFromWasmAbi for MapAssetNameToNonZeroInt64
impl RefFromWasmAbi for MapAssetNameToNonZeroInt64
Source§type Anchor = RcRef<MapAssetNameToNonZeroInt64>
type Anchor = RcRef<MapAssetNameToNonZeroInt64>
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 VectorFromWasmAbi for MapAssetNameToNonZeroInt64
impl VectorFromWasmAbi for MapAssetNameToNonZeroInt64
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[MapAssetNameToNonZeroInt64]>
Source§impl VectorIntoJsValue for MapAssetNameToNonZeroInt64
impl VectorIntoJsValue for MapAssetNameToNonZeroInt64
fn vector_into_jsvalue(vector: Box<[MapAssetNameToNonZeroInt64]>) -> JsValue
Source§impl VectorIntoWasmAbi for MapAssetNameToNonZeroInt64
impl VectorIntoWasmAbi for MapAssetNameToNonZeroInt64
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[MapAssetNameToNonZeroInt64]>) -> Self::Abi
Source§impl WasmDescribeVector for MapAssetNameToNonZeroInt64
impl WasmDescribeVector for MapAssetNameToNonZeroInt64
impl SupportsConstructor for MapAssetNameToNonZeroInt64
impl SupportsInstanceProperty for MapAssetNameToNonZeroInt64
impl SupportsStaticProperty for MapAssetNameToNonZeroInt64
Auto Trait Implementations§
impl Freeze for MapAssetNameToNonZeroInt64
impl RefUnwindSafe for MapAssetNameToNonZeroInt64
impl Send for MapAssetNameToNonZeroInt64
impl Sync for MapAssetNameToNonZeroInt64
impl Unpin for MapAssetNameToNonZeroInt64
impl UnwindSafe for MapAssetNameToNonZeroInt64
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> 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::Abi
Source§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
.