Struct gix_refspec::RefSpec
source · pub struct RefSpec { /* private fields */ }
Expand description
An owned refspec.
Implementations§
source§impl RefSpec
impl RefSpec
Conversion. Use the RefSpecRef
type for more usage options.
sourcepub fn to_ref(&self) -> RefSpecRef<'_>
pub fn to_ref(&self) -> RefSpecRef<'_>
Return ourselves as reference type.
sourcepub fn allow_non_fast_forward(&self) -> bool
pub fn allow_non_fast_forward(&self) -> bool
Return true if the spec stats with a +
and thus forces setting the reference.
Trait Implementations§
source§impl From<RefSpecRef<'_>> for RefSpec
impl From<RefSpecRef<'_>> for RefSpec
source§fn from(v: RefSpecRef<'_>) -> Self
fn from(v: RefSpecRef<'_>) -> Self
Converts to this type from the input type.
source§impl Ord for RefSpec
impl Ord for RefSpec
source§impl PartialEq for RefSpec
impl PartialEq for RefSpec
source§impl PartialOrd for RefSpec
impl PartialOrd for RefSpec
1.0.0 · source§fn 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 moreimpl Eq for RefSpec
Auto Trait Implementations§
impl RefUnwindSafe for RefSpec
impl Send for RefSpec
impl Sync for RefSpec
impl Unpin for RefSpec
impl UnwindSafe for RefSpec
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more