pub enum GitOidKind {
Sha1,
Sha256,
}Expand description
Supported Git object identifier text shapes.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for GitOidKind
impl Clone for GitOidKind
Source§fn clone(&self) -> GitOidKind
fn clone(&self) -> GitOidKind
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 GitOidKind
impl Debug for GitOidKind
Source§impl Display for GitOidKind
impl Display for GitOidKind
Source§impl FromStr for GitOidKind
impl FromStr for GitOidKind
Source§type Err = GitOidParseError
type Err = GitOidParseError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<GitOidKind, <GitOidKind as FromStr>::Err>
fn from_str(value: &str) -> Result<GitOidKind, <GitOidKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for GitOidKind
impl Hash for GitOidKind
Source§impl Ord for GitOidKind
impl Ord for GitOidKind
Source§fn cmp(&self, other: &GitOidKind) -> Ordering
fn cmp(&self, other: &GitOidKind) -> 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
Source§impl PartialEq for GitOidKind
impl PartialEq for GitOidKind
Source§fn eq(&self, other: &GitOidKind) -> bool
fn eq(&self, other: &GitOidKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GitOidKind
impl PartialOrd for GitOidKind
impl Copy for GitOidKind
impl Eq for GitOidKind
impl StructuralPartialEq for GitOidKind
Auto Trait Implementations§
impl Freeze for GitOidKind
impl RefUnwindSafe for GitOidKind
impl Send for GitOidKind
impl Sync for GitOidKind
impl Unpin for GitOidKind
impl UnsafeUnpin for GitOidKind
impl UnwindSafe for GitOidKind
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