pub struct CommitHash(pub TreeHash);
Expand description
Hash representation that provides a hexadecimal display.
Tuple Fields§
§0: TreeHash
Trait Implementations§
Source§impl AsRef<<Sha256Algorithm as Hasher>::Hash> for CommitHash
impl AsRef<<Sha256Algorithm as Hasher>::Hash> for CommitHash
Source§impl Clone for CommitHash
impl Clone for CommitHash
Source§fn clone(&self) -> CommitHash
fn clone(&self) -> CommitHash
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CommitHash
impl Debug for CommitHash
Source§impl Decodable for CommitHash
impl Decodable for CommitHash
Source§impl Default for CommitHash
impl Default for CommitHash
Source§fn default() -> CommitHash
fn default() -> CommitHash
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommitHash
impl<'de> Deserialize<'de> for CommitHash
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 Display for CommitHash
impl Display for CommitHash
Source§impl Encodable for CommitHash
impl Encodable for CommitHash
Source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Encode self into the binary writer.
Source§impl From<&CommitHash> for [u8; 32]
impl From<&CommitHash> for [u8; 32]
Source§fn from(value: &CommitHash) -> Self
fn from(value: &CommitHash) -> Self
Converts to this type from the input type.
Source§impl From<&ExternalFileName> for CommitHash
impl From<&ExternalFileName> for CommitHash
Source§fn from(value: &ExternalFileName) -> Self
fn from(value: &ExternalFileName) -> Self
Converts to this type from the input type.
Source§impl From<CommitHash> for [u8; 32]
impl From<CommitHash> for [u8; 32]
Source§fn from(value: CommitHash) -> Self
fn from(value: CommitHash) -> Self
Converts to this type from the input type.
Source§impl From<CommitProof> for CommitHash
impl From<CommitProof> for CommitHash
Source§fn from(value: CommitProof) -> Self
fn from(value: CommitProof) -> Self
Converts to this type from the input type.
Source§impl FromStr for CommitHash
impl FromStr for CommitHash
Source§impl Hash for CommitHash
impl Hash for CommitHash
Source§impl PartialEq for CommitHash
impl PartialEq for CommitHash
Source§impl Serialize for CommitHash
impl Serialize for CommitHash
impl Copy for CommitHash
impl Eq for CommitHash
impl StructuralPartialEq for CommitHash
Auto Trait Implementations§
impl Freeze for CommitHash
impl RefUnwindSafe for CommitHash
impl Send for CommitHash
impl Sync for CommitHash
impl Unpin for CommitHash
impl UnwindSafe for CommitHash
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