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