pub struct Item<'a> {
pub full_ref_name: &'a BStr,
pub target: &'a oid,
pub object: Option<&'a oid>,
}
Expand description
An item to match, input to various matching operations.
Fields§
§full_ref_name: &'a BStr
The full name of the references, like refs/heads/main
target: &'a oid
The id that full_ref_name
points to, which typically is a commit, but can also be a tag object (or anything else).
object: Option<&'a oid>
The object an annotated tag is pointing to, if target
is an annotated tag.
Trait Implementations§
impl<'a> Copy for Item<'a>
Auto Trait Implementations§
impl<'a> Freeze for Item<'a>
impl<'a> RefUnwindSafe for Item<'a>
impl<'a> Send for Item<'a>
impl<'a> Sync for Item<'a>
impl<'a> Unpin for Item<'a>
impl<'a> UnwindSafe for Item<'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
)