pub enum Hash {
None,
Blake3([u8; 32]),
GitSha1([u8; 20]),
GitSha2([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])
GitSha1([u8; 20])
GitSha2([u8; 32])
Implementations§
Trait Implementations§
impl Copy for Hash
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
impl Eq for Hash
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
1.21.0 (const: unstable) · 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 PartialOrd for Hash
impl PartialOrd for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.