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
Source§type Anchor = RcRef<MapTransactionIndexToAuxiliaryData>
type Anchor = RcRef<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.Source§impl VectorFromWasmAbi for MapTransactionIndexToAuxiliaryData
impl VectorFromWasmAbi for MapTransactionIndexToAuxiliaryData
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: Self::Abi, ) -> Box<[MapTransactionIndexToAuxiliaryData]>
Source§impl VectorIntoJsValue for MapTransactionIndexToAuxiliaryData
impl VectorIntoJsValue for MapTransactionIndexToAuxiliaryData
fn vector_into_jsvalue( vector: Box<[MapTransactionIndexToAuxiliaryData]>, ) -> JsValue
Source§impl VectorIntoWasmAbi for MapTransactionIndexToAuxiliaryData
impl VectorIntoWasmAbi for MapTransactionIndexToAuxiliaryData
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[MapTransactionIndexToAuxiliaryData]>, ) -> Self::Abi
Source§impl WasmDescribeVector for MapTransactionIndexToAuxiliaryData
impl WasmDescribeVector for MapTransactionIndexToAuxiliaryData
impl SupportsConstructor for MapTransactionIndexToAuxiliaryData
impl SupportsInstanceProperty for MapTransactionIndexToAuxiliaryData
impl SupportsStaticProperty for MapTransactionIndexToAuxiliaryData
Auto Trait Implementations§
impl Freeze for MapTransactionIndexToAuxiliaryData
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> 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
.