Trait git_repository::prelude::ObjectIdExt
source · pub trait ObjectIdExt: Sealed {
// Required methods
fn ancestors<Find, E>(
self,
find: Find
) -> Ancestors<Find, fn(_: &oid) -> bool, State>
where Find: for<'a> FnMut(&oid, &'a mut Vec<u8>) -> Result<CommitRefIter<'a>, E>,
E: Error + Send + Sync + 'static;
fn attach(self, repo: &Repository) -> Id<'_>;
}
Expand description
An extension trait to add functionality to ObjectId
s.
Required Methods§
sourcefn ancestors<Find, E>(
self,
find: Find
) -> Ancestors<Find, fn(_: &oid) -> bool, State>where
Find: for<'a> FnMut(&oid, &'a mut Vec<u8>) -> Result<CommitRefIter<'a>, E>,
E: Error + Send + Sync + 'static,
fn ancestors<Find, E>( self, find: Find ) -> Ancestors<Find, fn(_: &oid) -> bool, State>where Find: for<'a> FnMut(&oid, &'a mut Vec<u8>) -> Result<CommitRefIter<'a>, E>, E: Error + Send + Sync + 'static,
Create an iterator over the ancestry of the commits reachable from this id, which must be a commit.
sourcefn attach(self, repo: &Repository) -> Id<'_>
fn attach(self, repo: &Repository) -> Id<'_>
Infuse this object id repo
access.