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 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 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
§type Anchor = Ref<'static, MapAssetNameToNonZeroInt64>
type Anchor = Ref<'static, 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.Auto Trait Implementations§
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§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
.