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