Struct blockhash::Blockhash16
source · pub struct Blockhash16(/* private fields */);
Expand description
A 16-bit hash digest.
See blockhash16
.
Implementations§
Trait Implementations§
source§impl Clone for Blockhash16
impl Clone for Blockhash16
source§fn clone(&self) -> Blockhash16
fn clone(&self) -> Blockhash16
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 Blockhash16
impl Debug for Blockhash16
source§impl Display for Blockhash16
impl Display for Blockhash16
source§impl From<Blockhash16> for [u8; 2]
impl From<Blockhash16> for [u8; 2]
source§fn from(hash: Blockhash16) -> Self
fn from(hash: Blockhash16) -> Self
Converts to this type from the input type.
source§impl From<Blockhash16> for u16
impl From<Blockhash16> for u16
source§fn from(hash: Blockhash16) -> Self
fn from(hash: Blockhash16) -> Self
Converts to this type from the input type.
source§impl From<u16> for Blockhash16
impl From<u16> for Blockhash16
source§impl FromStr for Blockhash16
impl FromStr for Blockhash16
source§impl Hash for Blockhash16
impl Hash for Blockhash16
source§impl Ord for Blockhash16
impl Ord for Blockhash16
source§fn cmp(&self, other: &Blockhash16) -> Ordering
fn cmp(&self, other: &Blockhash16) -> Ordering
1.21.0 · 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 Blockhash16
impl PartialEq for Blockhash16
source§fn eq(&self, other: &Blockhash16) -> bool
fn eq(&self, other: &Blockhash16) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Blockhash16
impl PartialOrd for Blockhash16
source§fn partial_cmp(&self, other: &Blockhash16) -> Option<Ordering>
fn partial_cmp(&self, other: &Blockhash16) -> 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 moreimpl Copy for Blockhash16
impl Eq for Blockhash16
impl StructuralPartialEq for Blockhash16
Auto Trait Implementations§
impl Freeze for Blockhash16
impl RefUnwindSafe for Blockhash16
impl Send for Blockhash16
impl Sync for Blockhash16
impl Unpin for Blockhash16
impl UnwindSafe for Blockhash16
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