Enum git_refspec::match_group::SourceRef
source · Expand description
The source (or left-hand) side of a mapping, which references its name.
Variants
FullName(&'a BStr)
A full reference name, which is expected to be valid.
Validity, however, is not enforced here.
ObjectId(ObjectId)
The name of an object that is expected to exist on the remote side. Note that it might not be advertised by the remote but part of the object graph, and thus gets sent in the pack. The server is expected to fail unless the desired object is present but at some time it is merely a request by the user.
Implementations
Trait Implementations
sourceimpl<'a> PartialEq<SourceRef<'a>> for SourceRef<'a>
impl<'a> PartialEq<SourceRef<'a>> for SourceRef<'a>
impl<'a> Copy for SourceRef<'a>
impl<'a> Eq for SourceRef<'a>
impl<'a> StructuralEq for SourceRef<'a>
impl<'a> StructuralPartialEq for SourceRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SourceRef<'a>
impl<'a> Send for SourceRef<'a>
impl<'a> Sync for SourceRef<'a>
impl<'a> Unpin for SourceRef<'a>
impl<'a> UnwindSafe for SourceRef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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