pub trait ObjectAccessExt: Access + Sized {
fn find_object(
&self,
id: impl Into<ObjectId>
) -> Result<ObjectRef<'_, Self>, Error> { ... }
fn try_find_object(
&self,
id: impl Into<ObjectId>
) -> Result<Option<ObjectRef<'_, Self>>, Error> { ... }
fn write_object(&self, object: &Object) -> Result<Oid<'_, Self>, Error> { ... }
fn commit<Name, E>(
&self,
reference: Name,
message: impl Into<BString>,
author: impl Into<Signature>,
committer: impl Into<Signature>,
tree: impl Into<ObjectId>,
parents: impl IntoIterator<Item = impl Into<ObjectId>>
) -> Result<Oid<'_, Self>, Error>
where
Name: TryInto<FullName, Error = E>,
Error: From<E>,
{ ... }
}