Trait git_repository::prelude::ObjectIdExt[][src]

pub trait ObjectIdExt: Sealed {
    fn ancestors<Find>(
        self,
        find: Find
    ) -> Ancestors<Find, fn(_: &oid) -> bool, State>
    where
        Find: for<'a> FnMut(&oid, &'a mut Vec<u8>) -> Option<CommitRefIter<'a>>
;
fn attach<A: Access + Sized>(self, access: &A) -> Oid<'_, A>; }
Expand description

An extension trait to add functionality to ObjectIds.

Required methods

Create an iterator over the ancestry of the commits reachable from this id, which must be a commit.

Infuse this object id with an easy::Access.

Implementors