Enum cargo_lock::package::source::GitReference [−][src]
Expand description
Information to find a specific commit in a Git repository.
Variants
Tag(String)From a tag.
Branch(String)From the HEAD of a branch.
Rev(String)From a specific revision.
Implementations
impl GitReference[src]
impl GitReference[src]pub fn pretty_ref(&self) -> Option<PrettyRef<'_>>[src]
pub fn pretty_ref(&self) -> Option<PrettyRef<'_>>[src]Returns a Displayable view of this git reference, or None if using
the head of the default branch
Trait Implementations
impl Clone for GitReference[src]
impl Clone for GitReference[src]fn clone(&self) -> GitReference[src]
fn clone(&self) -> GitReference[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for GitReference[src]
impl Debug for GitReference[src]impl Hash for GitReference[src]
impl Hash for GitReference[src]impl Ord for GitReference[src]
impl Ord for GitReference[src]impl PartialEq<GitReference> for GitReference[src]
impl PartialEq<GitReference> for GitReference[src]fn eq(&self, other: &GitReference) -> bool[src]
fn eq(&self, other: &GitReference) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &GitReference) -> bool[src]
fn ne(&self, other: &GitReference) -> bool[src]This method tests for !=.
impl PartialOrd<GitReference> for GitReference[src]
impl PartialOrd<GitReference> for GitReference[src]fn partial_cmp(&self, other: &GitReference) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &GitReference) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for GitReference[src]
impl StructuralEq for GitReference[src]
impl StructuralPartialEq for GitReference[src]
Auto Trait Implementations
impl RefUnwindSafe for GitReference
impl Send for GitReference
impl Sync for GitReference
impl Unpin for GitReference
impl UnwindSafe for GitReference
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more