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