pub struct VotingProcedures(/* private fields */);Implementations§
Source§impl VotingProcedures
impl VotingProcedures
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn insert( &mut self, key: &Voter, value: &MapGovActionIdToVotingProcedure, ) -> Option<MapGovActionIdToVotingProcedure>
pub fn get(&self, key: &Voter) -> Option<MapGovActionIdToVotingProcedure>
pub fn keys(&self) -> VoterList
Trait Implementations§
Source§impl AsRef<OrderedHashMap<Voter, OrderedHashMap<GovActionId, VotingProcedure>>> for VotingProcedures
impl AsRef<OrderedHashMap<Voter, OrderedHashMap<GovActionId, VotingProcedure>>> for VotingProcedures
Source§fn as_ref(&self) -> &VotingProcedures
fn as_ref(&self) -> &VotingProcedures
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for VotingProcedures
impl Clone for VotingProcedures
Source§fn clone(&self) -> VotingProcedures
fn clone(&self) -> VotingProcedures
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 Debug for VotingProcedures
impl Debug for VotingProcedures
Source§impl From<OrderedHashMap<Voter, OrderedHashMap<GovActionId, VotingProcedure>>> for VotingProcedures
impl From<OrderedHashMap<Voter, OrderedHashMap<GovActionId, VotingProcedure>>> for VotingProcedures
Source§fn from(native: VotingProcedures) -> Self
fn from(native: VotingProcedures) -> Self
Converts to this type from the input type.
Source§impl From<VotingProcedures> for JsValue
impl From<VotingProcedures> for JsValue
Source§fn from(value: VotingProcedures) -> Self
fn from(value: VotingProcedures) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for VotingProcedures
impl FromWasmAbi for VotingProcedures
Source§impl Into<OrderedHashMap<Voter, OrderedHashMap<GovActionId, VotingProcedure>>> for VotingProcedures
impl Into<OrderedHashMap<Voter, OrderedHashMap<GovActionId, VotingProcedure>>> for VotingProcedures
Source§fn into(self) -> VotingProcedures
fn into(self) -> VotingProcedures
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for VotingProcedures
impl IntoWasmAbi for VotingProcedures
Source§impl OptionFromWasmAbi for VotingProcedures
impl OptionFromWasmAbi for VotingProcedures
Source§impl OptionIntoWasmAbi for VotingProcedures
impl OptionIntoWasmAbi for VotingProcedures
Source§impl RefFromWasmAbi for VotingProcedures
impl RefFromWasmAbi for VotingProcedures
Source§type Anchor = RcRef<VotingProcedures>
type Anchor = RcRef<VotingProcedures>
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 RefMutFromWasmAbi for VotingProcedures
impl RefMutFromWasmAbi for VotingProcedures
Source§impl TryFromJsValue for VotingProcedures
impl TryFromJsValue for VotingProcedures
Source§impl VectorFromWasmAbi for VotingProcedures
impl VectorFromWasmAbi for VotingProcedures
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[VotingProcedures]>
Source§impl VectorIntoJsValue for VotingProcedures
impl VectorIntoJsValue for VotingProcedures
fn vector_into_jsvalue(vector: Box<[VotingProcedures]>) -> JsValue
Source§impl VectorIntoWasmAbi for VotingProcedures
impl VectorIntoWasmAbi for VotingProcedures
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[VotingProcedures]>) -> Self::Abi
Source§impl WasmDescribeVector for VotingProcedures
impl WasmDescribeVector for VotingProcedures
impl SupportsConstructor for VotingProcedures
impl SupportsInstanceProperty for VotingProcedures
impl SupportsStaticProperty for VotingProcedures
Auto Trait Implementations§
impl Freeze for VotingProcedures
impl RefUnwindSafe for VotingProcedures
impl Send for VotingProcedures
impl Sync for VotingProcedures
impl Unpin for VotingProcedures
impl UnwindSafe for VotingProcedures
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::AbiSource§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.