pub struct GitVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
}Expand description
Parsed semantic version of the git binary.
Fields§
§major: u32§minor: u32§patch: u32Implementations§
Source§impl GitVersion
impl GitVersion
pub const MINIMUM: GitVersion
pub const HAS_LIST_NUL: GitVersion
pub const HAS_REPAIR: GitVersion
pub const HAS_MERGE_TREE_WRITE: GitVersion
Trait 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 · 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 Ord for GitVersion
impl Ord for GitVersion
Source§fn cmp(&self, other: &GitVersion) -> Ordering
fn cmp(&self, other: &GitVersion) -> Ordering
1.21.0 · 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 GitVersion
impl PartialEq for GitVersion
Source§impl PartialOrd for GitVersion
impl PartialOrd for GitVersion
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more