pub struct Hash160(/* private fields */);Implementations§
Trait Implementations§
Source§impl BitcoinDataType for Hash160
impl BitcoinDataType for Hash160
Source§impl<'de> Deserialize<'de> for Hash160
impl<'de> Deserialize<'de> for Hash160
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 Hash160
impl Hashed for Hash160
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 Hash160
impl StructuralPartialEq for Hash160
Auto Trait Implementations§
impl Freeze for Hash160
impl RefUnwindSafe for Hash160
impl Send for Hash160
impl Sync for Hash160
impl Unpin for Hash160
impl UnwindSafe for Hash160
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