pub enum RefTarget {
Direct(ObjectId),
Symbolic(RefName),
}Expand description
The target of a git ref
Refs can be either direct (pointing to an object) or symbolic (pointing to another ref).
Variants§
Direct(ObjectId)
A direct ref, pointing to an object
Symbolic(RefName)
A symbolic ref, pointing to another ref
Trait Implementations§
impl Eq for RefTarget
impl StructuralPartialEq for RefTarget
Auto Trait Implementations§
impl Freeze for RefTarget
impl RefUnwindSafe for RefTarget
impl Send for RefTarget
impl Sync for RefTarget
impl Unpin for RefTarget
impl UnsafeUnpin for RefTarget
impl UnwindSafe for RefTarget
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