Struct git_refspec::RefSpecRef
source · [−]pub struct RefSpecRef<'a> { /* private fields */ }
Expand description
A refspec with references to the memory it was parsed from.
Implementations
sourceimpl RefSpecRef<'_>
impl RefSpecRef<'_>
Access
sourcepub fn instruction(&self) -> Instruction<'_>
pub fn instruction(&self) -> Instruction<'_>
Transform the state of the refspec into an instruction making clear what to do with it.
sourceimpl RefSpecRef<'_>
impl RefSpecRef<'_>
Conversion
Trait Implementations
sourceimpl<'a> Clone for RefSpecRef<'a>
impl<'a> Clone for RefSpecRef<'a>
sourcefn clone(&self) -> RefSpecRef<'a>
fn clone(&self) -> RefSpecRef<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for RefSpecRef<'a>
impl<'a> Debug for RefSpecRef<'a>
sourceimpl From<RefSpecRef<'_>> for RefSpec
impl From<RefSpecRef<'_>> for RefSpec
sourcefn from(v: RefSpecRef<'_>) -> Self
fn from(v: RefSpecRef<'_>) -> Self
Converts to this type from the input type.
sourceimpl Hash for RefSpecRef<'_>
impl Hash for RefSpecRef<'_>
sourceimpl Ord for RefSpecRef<'_>
impl Ord for RefSpecRef<'_>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<RefSpecRef<'_>> for RefSpecRef<'_>
impl PartialEq<RefSpecRef<'_>> for RefSpecRef<'_>
sourceimpl PartialOrd<RefSpecRef<'_>> for RefSpecRef<'_>
impl PartialOrd<RefSpecRef<'_>> for RefSpecRef<'_>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Copy for RefSpecRef<'a>
impl<'a> Eq for RefSpecRef<'a>
impl<'a> StructuralEq for RefSpecRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for RefSpecRef<'a>
impl<'a> Send for RefSpecRef<'a>
impl<'a> Sync for RefSpecRef<'a>
impl<'a> Unpin for RefSpecRef<'a>
impl<'a> UnwindSafe for RefSpecRef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more