Enum RefspecDirection
pub enum RefspecDirection {
Fetch,
Push,
}Expand description
Refspec direction vocabulary.
Variants§
Implementations§
§impl RefspecDirection
impl RefspecDirection
Trait Implementations§
§impl Clone for RefspecDirection
impl Clone for RefspecDirection
§fn clone(&self) -> RefspecDirection
fn clone(&self) -> RefspecDirection
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 more§impl Debug for RefspecDirection
impl Debug for RefspecDirection
§impl Display for RefspecDirection
impl Display for RefspecDirection
§impl FromStr for RefspecDirection
impl FromStr for RefspecDirection
§type Err = RefspecParseError
type Err = RefspecParseError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<RefspecDirection, <RefspecDirection as FromStr>::Err>
fn from_str( value: &str, ) -> Result<RefspecDirection, <RefspecDirection as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for RefspecDirection
impl Hash for RefspecDirection
§impl Ord for RefspecDirection
impl Ord for RefspecDirection
§fn cmp(&self, other: &RefspecDirection) -> Ordering
fn cmp(&self, other: &RefspecDirection) -> 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
§impl PartialEq for RefspecDirection
impl PartialEq for RefspecDirection
§impl PartialOrd for RefspecDirection
impl PartialOrd for RefspecDirection
impl Copy for RefspecDirection
impl Eq for RefspecDirection
impl StructuralPartialEq for RefspecDirection
Auto Trait Implementations§
impl Freeze for RefspecDirection
impl RefUnwindSafe for RefspecDirection
impl Send for RefspecDirection
impl Sync for RefspecDirection
impl Unpin for RefspecDirection
impl UnsafeUnpin for RefspecDirection
impl UnwindSafe for RefspecDirection
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