pub struct GitVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
pub raw: String,
}Expand description
Parsed git version.
Fields§
§major: u32§minor: u32§patch: u32§raw: StringTrait Implementations§
Source§impl Clone for GitVersion
impl Clone for GitVersion
Source§fn clone(&self) -> GitVersion
fn clone(&self) -> GitVersion
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 GitVersion
impl Debug for GitVersion
Source§impl PartialEq for GitVersion
impl PartialEq for GitVersion
Source§fn eq(&self, other: &GitVersion) -> bool
fn eq(&self, other: &GitVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GitVersion
impl StructuralPartialEq for GitVersion
Auto Trait Implementations§
impl Freeze for GitVersion
impl RefUnwindSafe for GitVersion
impl Send for GitVersion
impl Sync for GitVersion
impl Unpin for GitVersion
impl UnsafeUnpin for GitVersion
impl UnwindSafe for GitVersion
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> 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.