pub struct HashHex(pub [u8; 32]);Expand description
A 32-byte hex-encoded value (block hash, coin id, state root, etc).
Wire form is "0x" followed by 64 lowercase hex chars. Deserialization
accepts mixed case and optional 0x prefix.
Tuple Fields§
§0: [u8; 32]Raw 32-byte value.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HashHex
impl<'de> Deserialize<'de> for HashHex
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for HashHex
impl Eq for HashHex
impl StructuralPartialEq for HashHex
Auto Trait Implementations§
impl Freeze for HashHex
impl RefUnwindSafe for HashHex
impl Send for HashHex
impl Sync for HashHex
impl Unpin for HashHex
impl UnsafeUnpin for HashHex
impl UnwindSafe for HashHex
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