pub enum GitRefKind {
Head,
Branch,
Tag,
Remote,
Other,
}Expand description
A broad ref-name kind.
Variants§
Head
The HEAD pseudo-ref.
Branch
A branch ref under refs/heads/.
Tag
A tag ref under refs/tags/.
Remote
A remote-tracking ref under refs/remotes/.
Other
Another syntactically valid ref name.
Implementations§
Trait Implementations§
Source§impl Clone for GitRefKind
impl Clone for GitRefKind
Source§fn clone(&self) -> GitRefKind
fn clone(&self) -> GitRefKind
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 GitRefKind
impl Debug for GitRefKind
Source§impl Display for GitRefKind
impl Display for GitRefKind
Source§impl Hash for GitRefKind
impl Hash for GitRefKind
Source§impl Ord for GitRefKind
impl Ord for GitRefKind
Source§fn cmp(&self, other: &GitRefKind) -> Ordering
fn cmp(&self, other: &GitRefKind) -> 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 GitRefKind
impl PartialEq for GitRefKind
Source§fn eq(&self, other: &GitRefKind) -> bool
fn eq(&self, other: &GitRefKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GitRefKind
impl PartialOrd for GitRefKind
impl Copy for GitRefKind
impl Eq for GitRefKind
impl StructuralPartialEq for GitRefKind
Auto Trait Implementations§
impl Freeze for GitRefKind
impl RefUnwindSafe for GitRefKind
impl Send for GitRefKind
impl Sync for GitRefKind
impl Unpin for GitRefKind
impl UnsafeUnpin for GitRefKind
impl UnwindSafe for GitRefKind
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