Trait git_pack::FindExt[][src]

pub trait FindExt: Find {
    fn find_existing<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8>,
        pack_cache: &mut impl DecodeEntry
    ) -> Result<Object<'a>, Error<Self::Error>> { ... }
fn find_existing_commit<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8>,
        pack_cache: &mut impl DecodeEntry
    ) -> Result<Commit<'a>, Error<Self::Error>> { ... }
fn find_existing_tree<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8>,
        pack_cache: &mut impl DecodeEntry
    ) -> Result<Tree<'a>, Error<Self::Error>> { ... }
fn find_existing_tag<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8>,
        pack_cache: &mut impl DecodeEntry
    ) -> Result<Tag<'a>, Error<Self::Error>> { ... }
fn find_existing_blob<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8>,
        pack_cache: &mut impl DecodeEntry
    ) -> Result<Blob<'a>, Error<Self::Error>> { ... }
fn find_existing_commit_iter<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8>,
        pack_cache: &mut impl DecodeEntry
    ) -> Result<CommitIter<'a>, Error<Self::Error>> { ... }
fn find_existing_tree_iter<'a>(
        &self,
        id: impl AsRef<oid>,
        buffer: &'a mut Vec<u8>,
        pack_cache: &mut impl DecodeEntry
    ) -> Result<TreeIter<'a>, Error<Self::Error>> { ... } }
Expand description

An extension trait with convenience functions.

Provided methods

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

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

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

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

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

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

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

Implementors