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 ObjectIds.

Required Methods§

source

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.

source

fn attach(self, repo: &Repository) -> Id<'_>

Infuse this object id repo access.

Implementors§