pub enum RevisionSelector {
Head,
Branch(String),
Tag(String),
Ref(String),
Oid(String),
Other(String),
}Expand description
A revision selector classification.
Variants§
Head
HEAD selector.
Branch(String)
A branch selector.
Tag(String)
A tag selector.
Ref(String)
A full ref selector.
Oid(String)
Object identifier text.
Other(String)
Other selector text.
Trait Implementations§
Source§impl Clone for RevisionSelector
impl Clone for RevisionSelector
Source§fn clone(&self) -> RevisionSelector
fn clone(&self) -> RevisionSelector
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 RevisionSelector
impl Debug for RevisionSelector
Source§impl Display for RevisionSelector
impl Display for RevisionSelector
Source§impl Hash for RevisionSelector
impl Hash for RevisionSelector
Source§impl Ord for RevisionSelector
impl Ord for RevisionSelector
Source§fn cmp(&self, other: &RevisionSelector) -> Ordering
fn cmp(&self, other: &RevisionSelector) -> 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 RevisionSelector
impl PartialEq for RevisionSelector
Source§fn eq(&self, other: &RevisionSelector) -> bool
fn eq(&self, other: &RevisionSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RevisionSelector
impl PartialOrd for RevisionSelector
impl Eq for RevisionSelector
impl StructuralPartialEq for RevisionSelector
Auto Trait Implementations§
impl Freeze for RevisionSelector
impl RefUnwindSafe for RevisionSelector
impl Send for RevisionSelector
impl Sync for RevisionSelector
impl Unpin for RevisionSelector
impl UnsafeUnpin for RevisionSelector
impl UnwindSafe for RevisionSelector
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