Trait git_repository::prelude::FindExt[][src]

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