Struct blockhash::Blockhash16
source · [−]pub struct Blockhash16(_);
Expand description
A 16-bit hash digest.
Implementations
Trait Implementations
sourceimpl Clone for Blockhash16
impl Clone for Blockhash16
sourcefn clone(&self) -> Blockhash16
fn clone(&self) -> Blockhash16
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Blockhash16
impl Debug for Blockhash16
sourceimpl Display for Blockhash16
impl Display for Blockhash16
sourceimpl From<Blockhash16> for [u8; 2]
impl From<Blockhash16> for [u8; 2]
sourcefn from(hash: Blockhash16) -> Self
fn from(hash: Blockhash16) -> Self
Converts to this type from the input type.
sourceimpl From<Blockhash16> for u16
impl From<Blockhash16> for u16
sourcefn from(hash: Blockhash16) -> Self
fn from(hash: Blockhash16) -> Self
Converts to this type from the input type.
sourceimpl From<u16> for Blockhash16
impl From<u16> for Blockhash16
sourceimpl FromStr for Blockhash16
impl FromStr for Blockhash16
sourceimpl Hash for Blockhash16
impl Hash for Blockhash16
sourceimpl Ord for Blockhash16
impl Ord for Blockhash16
sourceimpl PartialEq<Blockhash16> for Blockhash16
impl PartialEq<Blockhash16> for Blockhash16
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Blockhash16) -> bool
fn ne(&self, other: &Blockhash16) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Blockhash16> for Blockhash16
impl PartialOrd<Blockhash16> for Blockhash16
sourcefn partial_cmp(&self, other: &Blockhash16) -> Option<Ordering>
fn partial_cmp(&self, other: &Blockhash16) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for Blockhash16
impl Eq for Blockhash16
impl StructuralEq for Blockhash16
impl StructuralPartialEq for Blockhash16
Auto Trait Implementations
impl RefUnwindSafe for Blockhash16
impl Send for Blockhash16
impl Sync for Blockhash16
impl Unpin for Blockhash16
impl UnwindSafe for Blockhash16
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more