Struct scsys_crypto::H256
source · pub struct H256(pub H256Hash);Expand description
A SHA256 hash.
Tuple Fields§
§0: H256HashImplementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for H256
impl<'de> Deserialize<'de> for H256
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 From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for H256
impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for H256
source§fn from(data: GenericHash) -> H256
fn from(data: GenericHash) -> H256
Converts to this type from the input type.
source§impl Ord for H256
impl Ord for H256
source§impl PartialEq<H256> for H256
impl PartialEq<H256> for H256
source§impl PartialOrd<H256> for H256
impl PartialOrd<H256> for H256
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for H256
impl Eq for H256
impl StructuralEq for H256
impl StructuralPartialEq for H256
Auto Trait Implementations§
impl RefUnwindSafe for H256
impl Send for H256
impl Sync for H256
impl Unpin for H256
impl UnwindSafe for H256
Blanket Implementations§
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)