pub struct ResultHash(/* private fields */);
Implementations§
Source§impl ResultHash
impl ResultHash
pub fn from_slice(hash: [u8; 32]) -> Self
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 duplicate 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 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§impl PartialOrd for ResultHash
impl PartialOrd for ResultHash
Source§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 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