pub struct Sha256d(/* private fields */);Implementations§
Trait Implementations§
Source§impl BitcoinDataType for Sha256d
impl BitcoinDataType for Sha256d
Source§impl<'de> Deserialize<'de> for Sha256d
impl<'de> Deserialize<'de> for Sha256d
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 Hashed for Sha256d
impl Hashed for Sha256d
fn function() -> Function
fn digest_slice(msg: &[u8]) -> Arc<[u8]>
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(hash: &[u8]) -> Result<Self>
fn from_byte_array(hash: ByteArray) -> Result<Self>
fn named(self, name: impl Into<Cow<'static, str>>) -> Self
fn as_byte_array(&self) -> &ByteArray
fn into_byte_array(self) -> ByteArray
fn digest(msg: impl Into<ByteArray>) -> Self
fn from_hex_le(s: &str) -> Result<Self>
fn from_hex_be(s: &str) -> Result<Self>
fn from_slice_le(hash_le: &[u8]) -> Result<Self>
fn to_vec_le(&self) -> Vec<u8> ⓘ
fn to_hex_le(&self) -> String
fn to_hex_be(&self) -> String
fn concat(self, other: impl Into<ByteArray>) -> ByteArray
impl Eq for Sha256d
impl StructuralPartialEq for Sha256d
Auto Trait Implementations§
impl Freeze for Sha256d
impl RefUnwindSafe for Sha256d
impl Send for Sha256d
impl Sync for Sha256d
impl Unpin for Sha256d
impl UnwindSafe for Sha256d
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