Enum gix_refspec::match_group::SourceRef
source · pub enum SourceRef<'a> {
FullName(&'a BStr),
ObjectId(ObjectId),
}
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§
impl<'a> Copy for SourceRef<'a>
impl<'a> Eq for SourceRef<'a>
impl<'a> StructuralPartialEq for SourceRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SourceRef<'a>
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§
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
)