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 PartialOrd for RefSpec
impl PartialOrd for RefSpec
impl Eq for RefSpec
Auto Trait Implementations§
impl Freeze for RefSpec
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)