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