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§
source§impl<'a> PartialEq for SourceRef<'a>
impl<'a> PartialEq for SourceRef<'a>
impl<'a> Copy for SourceRef<'a>
impl<'a> Eq 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§
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