Struct ccp_shared::types::ResultHash  
source · pub struct ResultHash(/* private fields */);Implementations§
source§impl ResultHash
 
impl ResultHash
pub fn from_slice(hash: ResultHashInner) -> Self
pub fn into_slice(self) -> ResultHashInner
Trait Implementations§
source§impl AsMut<[u8; 32]> for ResultHash
 
impl AsMut<[u8; 32]> for ResultHash
source§fn as_mut(&mut self) -> &mut ResultHashInner
 
fn as_mut(&mut self) -> &mut ResultHashInner
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<[u8; 32]> for ResultHash
 
impl AsRef<[u8; 32]> for ResultHash
source§fn as_ref(&self) -> &ResultHashInner
 
fn as_ref(&self) -> &ResultHashInner
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ResultHash
 
impl Clone for ResultHash
source§fn clone(&self) -> ResultHash
 
fn clone(&self) -> ResultHash
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 ResultHash
 
impl Debug for ResultHash
source§impl<'de> Deserialize<'de> for ResultHash
 
impl<'de> Deserialize<'de> for ResultHash
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ResultHash
 
impl Display for ResultHash
source§impl FromHex for ResultHash
 
impl FromHex for ResultHash
source§impl Hash for ResultHash
 
impl Hash for ResultHash
source§impl MeetDifficulty for ResultHash
 
impl MeetDifficulty for ResultHash
fn meet_difficulty(&self, difficulty: &Difficulty) -> bool
source§impl Ord for ResultHash
 
impl Ord for ResultHash
source§fn cmp(&self, other: &ResultHash) -> Ordering
 
fn cmp(&self, other: &ResultHash) -> 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 ResultHash
 
impl PartialEq for ResultHash
source§fn eq(&self, other: &ResultHash) -> bool
 
fn eq(&self, other: &ResultHash) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ResultHash
 
impl PartialOrd for ResultHash
source§fn partial_cmp(&self, other: &ResultHash) -> Option<Ordering>
 
fn partial_cmp(&self, other: &ResultHash) -> 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 Serialize for ResultHash
 
impl Serialize for ResultHash
source§impl ToHex for ResultHash
 
impl ToHex for ResultHash
source§fn encode_hex<T: FromIterator<char>>(&self) -> T
 
fn encode_hex<T: FromIterator<char>>(&self) -> T
Encode the hex strict representing 
self into the result. Lower case
letters are used (e.g. f9b4ca)source§fn encode_hex_upper<T: FromIterator<char>>(&self) -> T
 
fn encode_hex_upper<T: FromIterator<char>>(&self) -> T
Encode the hex strict representing 
self into the result. Upper case
letters are used (e.g. F9B4CA)impl Copy for ResultHash
impl Eq for ResultHash
impl StructuralPartialEq for ResultHash
Auto Trait Implementations§
impl RefUnwindSafe for ResultHash
impl Send for ResultHash
impl Sync for ResultHash
impl Unpin for ResultHash
impl UnwindSafe for ResultHash
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