pub struct ChangeHash(pub [u8; 32]);
Expand description
The sha256 hash of a change.
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
Source§impl AsRef<[u8]> for ChangeHash
impl AsRef<[u8]> for ChangeHash
Source§impl Clone for ChangeHash
impl Clone for ChangeHash
Source§fn clone(&self) -> ChangeHash
fn clone(&self) -> ChangeHash
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChangeHash
impl Debug for ChangeHash
Source§impl<'de> Deserialize<'de> for ChangeHash
impl<'de> Deserialize<'de> for ChangeHash
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 ChangeHash
impl Display for ChangeHash
Source§impl FromStr for ChangeHash
impl FromStr for ChangeHash
Source§impl Hash for ChangeHash
impl Hash for ChangeHash
Source§impl Ord for ChangeHash
impl Ord for ChangeHash
Source§fn cmp(&self, other: &ChangeHash) -> Ordering
fn cmp(&self, other: &ChangeHash) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChangeHash
impl PartialEq for ChangeHash
Source§impl PartialOrd for ChangeHash
impl PartialOrd for ChangeHash
Source§impl Serialize for ChangeHash
impl Serialize for ChangeHash
Source§impl TryFrom<&[u8]> for ChangeHash
impl TryFrom<&[u8]> for ChangeHash
impl Copy for ChangeHash
impl Eq for ChangeHash
impl StructuralPartialEq for ChangeHash
Auto Trait Implementations§
impl Freeze for ChangeHash
impl RefUnwindSafe for ChangeHash
impl Send for ChangeHash
impl Sync for ChangeHash
impl Unpin for ChangeHash
impl UnwindSafe for ChangeHash
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToHex for T
impl<T> ToHex for T
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
)