Struct ccp_randomx::ResultHash
source · pub struct ResultHash(/* private fields */);Implementations§
source§impl ResultHash
impl ResultHash
pub fn from_slice(hash: [u8; 32]) -> ResultHash
pub fn into_slice(self) -> [u8; 32]
Trait Implementations§
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<ResultHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ResultHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromHex for ResultHash
impl FromHex for ResultHash
source§impl Hash for ResultHash
impl Hash for ResultHash
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§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl ToHex for ResultHash
impl ToHex for ResultHash
source§fn encode_hex<T>(&self) -> Twhere
T: FromIterator<char>,
fn encode_hex<T>(&self) -> Twhere
T: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)source§fn encode_hex_upper<T>(&self) -> Twhere
T: FromIterator<char>,
fn encode_hex_upper<T>(&self) -> Twhere
T: FromIterator<char>,
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