Struct grin_core::core::block::HeaderVersion
source · pub struct HeaderVersion(pub u16);
Expand description
Some type safety around header versioning.
Tuple Fields§
§0: u16
Trait Implementations§
source§impl Clone for HeaderVersion
impl Clone for HeaderVersion
source§fn clone(&self) -> HeaderVersion
fn clone(&self) -> HeaderVersion
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 Debug for HeaderVersion
impl Debug for HeaderVersion
source§impl From<HeaderVersion> for u16
impl From<HeaderVersion> for u16
source§fn from(v: HeaderVersion) -> u16
fn from(v: HeaderVersion) -> u16
Converts to this type from the input type.
source§impl PartialEq for HeaderVersion
impl PartialEq for HeaderVersion
source§fn eq(&self, other: &HeaderVersion) -> bool
fn eq(&self, other: &HeaderVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HeaderVersion
impl PartialOrd for HeaderVersion
source§fn partial_cmp(&self, other: &HeaderVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Readable for HeaderVersion
impl Readable for HeaderVersion
source§impl Serialize for HeaderVersion
impl Serialize for HeaderVersion
source§impl Writeable for HeaderVersion
impl Writeable for HeaderVersion
impl Copy for HeaderVersion
impl Eq for HeaderVersion
impl StructuralPartialEq for HeaderVersion
Auto Trait Implementations§
impl Freeze for HeaderVersion
impl RefUnwindSafe for HeaderVersion
impl Send for HeaderVersion
impl Sync for HeaderVersion
impl Unpin for HeaderVersion
impl UnwindSafe for HeaderVersion
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<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.