pub enum Ref {
Direct(ObjectId),
Symbolic(String),
}Expand description
A git reference
Variants§
Direct(ObjectId)
Direct reference to an object
Symbolic(String)
Symbolic reference to another ref (e.g., HEAD -> refs/heads/main)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ref
impl RefUnwindSafe for Ref
impl Send for Ref
impl Sync for Ref
impl Unpin for Ref
impl UnwindSafe for Ref
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