pub struct ProposalContractVersion(/* private fields */);Expand description
Sole maintained proposal contract version.
Implementations§
Source§impl ProposalContractVersion
impl ProposalContractVersion
Sourcepub const CURRENT: ProposalContractVersion
pub const CURRENT: ProposalContractVersion
Current pre-1.0 hard-cut proposal contract version.
Sourcepub const fn from_raw(value: u16) -> ProposalContractVersion
pub const fn from_raw(value: u16) -> ProposalContractVersion
Construct a version token for decoding and incompatibility tests.
Trait Implementations§
Source§impl Clone for ProposalContractVersion
impl Clone for ProposalContractVersion
Source§fn clone(&self) -> ProposalContractVersion
fn clone(&self) -> ProposalContractVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProposalContractVersion
Source§impl Debug for ProposalContractVersion
impl Debug for ProposalContractVersion
impl Eq for ProposalContractVersion
Source§impl Hash for ProposalContractVersion
impl Hash for ProposalContractVersion
Source§impl Ord for ProposalContractVersion
impl Ord for ProposalContractVersion
Source§fn cmp(&self, other: &ProposalContractVersion) -> Ordering
fn cmp(&self, other: &ProposalContractVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProposalContractVersion
impl PartialEq for ProposalContractVersion
Source§impl PartialOrd for ProposalContractVersion
impl PartialOrd for ProposalContractVersion
impl StructuralPartialEq for ProposalContractVersion
Auto Trait Implementations§
impl Freeze for ProposalContractVersion
impl RefUnwindSafe for ProposalContractVersion
impl Send for ProposalContractVersion
impl Sync for ProposalContractVersion
impl Unpin for ProposalContractVersion
impl UnsafeUnpin for ProposalContractVersion
impl UnwindSafe for ProposalContractVersion
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.