pub enum GitObjectId {
Sha1([u8; 20]),
Sha256([u8; 32]),
}Expand description
Git object identity retains the hash algorithm; SHA-256 never truncates into a SHA-1 address. This names commits and raw annotated tag objects.
Variants§
Trait Implementations§
Source§impl Clone for GitObjectId
impl Clone for GitObjectId
Source§fn clone(&self) -> GitObjectId
fn clone(&self) -> GitObjectId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitObjectId
impl Debug for GitObjectId
Source§impl<'de> Deserialize<'de> for GitObjectId
impl<'de> Deserialize<'de> for GitObjectId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GitObjectId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GitObjectId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GitObjectId
Source§impl Ord for GitObjectId
impl Ord for GitObjectId
Source§fn cmp(&self, other: &GitObjectId) -> Ordering
fn cmp(&self, other: &GitObjectId) -> Ordering
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GitObjectId
impl PartialEq for GitObjectId
Source§impl PartialOrd for GitObjectId
impl PartialOrd for GitObjectId
Source§impl Serialize for GitObjectId
impl Serialize for GitObjectId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GitObjectId
Auto Trait Implementations§
impl Freeze for GitObjectId
impl RefUnwindSafe for GitObjectId
impl Send for GitObjectId
impl Sync for GitObjectId
impl Unpin for GitObjectId
impl UnsafeUnpin for GitObjectId
impl UnwindSafe for GitObjectId
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