Trait git_odb::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>> { ... } }

An extension trait with convenience functions.

Provided methods

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>>
[src]

Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an 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>>
[src]

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.

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>>
[src]

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.

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>>
[src]

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.

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>>
[src]

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.

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>>
[src]

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.

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>>
[src]

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.

Loading content...

Implementors

impl<T: Find> FindExt for T[src]

Loading content...