pub struct MapTransactionIndexToAuxiliaryData(/* private fields */);
Implementations§
source§impl MapTransactionIndexToAuxiliaryData
impl MapTransactionIndexToAuxiliaryData
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn insert( &mut self, key: TransactionIndex, value: &AuxiliaryData ) -> Option<AuxiliaryData>
pub fn get(&self, key: TransactionIndex) -> Option<AuxiliaryData>
pub fn keys(&self) -> Vec<TransactionIndex>
Trait Implementations§
source§impl AsRef<OrderedHashMap<u16, AuxiliaryData>> for MapTransactionIndexToAuxiliaryData
impl AsRef<OrderedHashMap<u16, AuxiliaryData>> for MapTransactionIndexToAuxiliaryData
source§fn as_ref(&self) -> &OrderedHashMap<TransactionIndex, AuxiliaryData>
fn as_ref(&self) -> &OrderedHashMap<TransactionIndex, AuxiliaryData>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for MapTransactionIndexToAuxiliaryData
impl Clone for MapTransactionIndexToAuxiliaryData
source§fn clone(&self) -> MapTransactionIndexToAuxiliaryData
fn clone(&self) -> MapTransactionIndexToAuxiliaryData
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 From<MapTransactionIndexToAuxiliaryData> for JsValue
impl From<MapTransactionIndexToAuxiliaryData> for JsValue
source§fn from(value: MapTransactionIndexToAuxiliaryData) -> Self
fn from(value: MapTransactionIndexToAuxiliaryData) -> Self
Converts to this type from the input type.
source§impl From<OrderedHashMap<u16, AuxiliaryData>> for MapTransactionIndexToAuxiliaryData
impl From<OrderedHashMap<u16, AuxiliaryData>> for MapTransactionIndexToAuxiliaryData
source§fn from(native: OrderedHashMap<TransactionIndex, AuxiliaryData>) -> Self
fn from(native: OrderedHashMap<TransactionIndex, AuxiliaryData>) -> Self
Converts to this type from the input type.
source§impl Into<OrderedHashMap<u16, AuxiliaryData>> for MapTransactionIndexToAuxiliaryData
impl Into<OrderedHashMap<u16, AuxiliaryData>> for MapTransactionIndexToAuxiliaryData
source§fn into(self) -> OrderedHashMap<TransactionIndex, AuxiliaryData>
fn into(self) -> OrderedHashMap<TransactionIndex, AuxiliaryData>
Converts this type into the (usually inferred) input type.
source§impl RefFromWasmAbi for MapTransactionIndexToAuxiliaryData
impl RefFromWasmAbi for MapTransactionIndexToAuxiliaryData
§type Anchor = Ref<'static, MapTransactionIndexToAuxiliaryData>
type Anchor = Ref<'static, MapTransactionIndexToAuxiliaryData>
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 MapTransactionIndexToAuxiliaryData
impl Send for MapTransactionIndexToAuxiliaryData
impl Sync for MapTransactionIndexToAuxiliaryData
impl Unpin for MapTransactionIndexToAuxiliaryData
impl UnwindSafe for MapTransactionIndexToAuxiliaryData
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
.