pub trait FindExt: Find {
    fn find<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8, Global>
    ) -> Result<Data<'a>, Error<Self::Error>> { ... } fn find_commit<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8, Global>
    ) -> Result<CommitRef<'a>, Error<Self::Error>> { ... } fn find_tree<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8, Global>
    ) -> Result<TreeRef<'a>, Error<Self::Error>> { ... } fn find_tag<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8, Global>
    ) -> Result<TagRef<'a>, Error<Self::Error>> { ... } fn find_blob<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8, Global>
    ) -> Result<BlobRef<'a>, Error<Self::Error>> { ... } fn find_commit_iter<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8, Global>
    ) -> Result<CommitRefIter<'a>, Error<Self::Error>> { ... } fn find_tree_iter<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8, Global>
    ) -> Result<TreeRefIter<'a>, Error<Self::Error>> { ... } fn find_tag_iter<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8, Global>
    ) -> Result<TagRefIter<'a>, Error<Self::Error>> { ... } }
Expand description

An extension trait with convenience functions.

Provided Methods§

Like try_find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error.

Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error while returning the desired object type.

Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error while returning the desired object type.

Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error while returning the desired object type.

Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error while returning the desired object type.

Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error while returning the desired iterator type.

Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error while returning the desired iterator type.

Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error while returning the desired iterator type.

Implementors§