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 Display for ResultHash
impl Display for ResultHash
source§impl FromHex for ResultHash
impl FromHex for ResultHash
source§impl FromStr for ResultHash
impl FromStr for ResultHash
source§type Err = FromHexError
type Err = FromHexError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<ResultHash, <ResultHash as FromStr>::Err>
fn from_str(s: &str) -> Result<ResultHash, <ResultHash as FromStr>::Err>
Parses a string
s to return a value of this type. Read moresource§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§impl PartialOrd for ResultHash
impl PartialOrd for ResultHash
source§impl Serialize for ResultHashwhere
ResultHash: Display,
impl Serialize for ResultHashwhere
ResultHash: Display,
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 Freeze for ResultHash
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)