#[repr(transparent)]pub struct ComparableProposalId {
pub inner: ProposalId,
}Fields§
§inner: ProposalIdImplementations§
Source§impl ComparableProposalId
impl ComparableProposalId
Sourcepub fn to_compact_string(&self) -> String
pub fn to_compact_string(&self) -> String
Like Display, but more compact
Trait Implementations§
Source§impl AsRef<ComparableProposalId> for ComparableProposalId
impl AsRef<ComparableProposalId> for ComparableProposalId
Source§fn as_ref(&self) -> &ComparableProposalId
fn as_ref(&self) -> &ComparableProposalId
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ComparableProposalId
impl Clone for ComparableProposalId
Source§fn clone(&self) -> ComparableProposalId
fn clone(&self) -> ComparableProposalId
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 ComparableProposalId
impl Debug for ComparableProposalId
Source§impl<'d, C> Decode<'d, C> for ComparableProposalId
impl<'d, C> Decode<'d, C> for ComparableProposalId
Source§impl Deref for ComparableProposalId
impl Deref for ComparableProposalId
Source§impl Display for ComparableProposalId
impl Display for ComparableProposalId
Source§impl<C> Encode<C> for ComparableProposalId
impl<C> Encode<C> for ComparableProposalId
Source§impl From<ComparableProposalId> for ProposalId
impl From<ComparableProposalId> for ProposalId
Source§fn from(comparable: ComparableProposalId) -> ProposalId
fn from(comparable: ComparableProposalId) -> ProposalId
Converts to this type from the input type.
Source§impl From<GovActionId> for ComparableProposalId
impl From<GovActionId> for ComparableProposalId
Source§fn from(inner: ProposalId) -> Self
fn from(inner: ProposalId) -> Self
Converts to this type from the input type.
Source§impl Ord for ComparableProposalId
impl Ord for ComparableProposalId
Source§impl PartialEq for ComparableProposalId
impl PartialEq for ComparableProposalId
Source§impl PartialOrd for ComparableProposalId
impl PartialOrd for ComparableProposalId
impl Eq for ComparableProposalId
impl StructuralPartialEq for ComparableProposalId
Auto Trait Implementations§
impl Freeze for ComparableProposalId
impl RefUnwindSafe for ComparableProposalId
impl Send for ComparableProposalId
impl Sync for ComparableProposalId
impl Unpin for ComparableProposalId
impl UnsafeUnpin for ComparableProposalId
impl UnwindSafe for ComparableProposalId
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 more