pub enum Hash {
None,
Blake3([u8; 32]),
}
Expand description
The external hash of changes.
Variants§
None
None is the hash of the “null change”, which introduced a single root vertex at the beginning of the repository.
Blake3([u8; 32])
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
impl<'de> Deserialize<'de> for Hash
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<'a> From<&'a Hash> for SerializedHash
impl<'a> From<&'a Hash> for SerializedHash
source§impl<'a> From<&'a SerializedHash> for Hash
impl<'a> From<&'a SerializedHash> for Hash
source§fn from(s: &'a SerializedHash) -> Hash
fn from(s: &'a SerializedHash) -> Hash
Converts to this type from the input type.
source§impl From<Hash> for SerializedHash
impl From<Hash> for SerializedHash
source§fn from(s: Hash) -> SerializedHash
fn from(s: Hash) -> SerializedHash
Converts to this type from the input type.
source§impl From<SerializedHash> for Hash
impl From<SerializedHash> for Hash
source§fn from(s: SerializedHash) -> Hash
fn from(s: SerializedHash) -> Hash
Converts to this type from the input type.
source§impl Ord for Hash
impl Ord for Hash
source§impl PartialEq for Hash
impl PartialEq for Hash
source§impl PartialOrd for Hash
impl PartialOrd for Hash
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 Hash
impl Eq for Hash
impl StructuralEq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
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