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