Trait git_odb::FindExt [−][src]
pub trait FindExt: Find {
fn find(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<Object<'a>, Error<Self::Error>> { ... }
fn find_commit(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<CommitRef<'a>, Error<Self::Error>> { ... }
fn find_tree(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<TreeRef<'a>, Error<Self::Error>> { ... }
fn find_tag(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<TagRef<'a>, Error<Self::Error>> { ... }
fn find_blob(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<BlobRef<'a>, Error<Self::Error>> { ... }
fn find_commit_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<CommitRefIter<'a>, Error<Self::Error>> { ... }
fn find_tree_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<TreeRefIter<'a>, Error<Self::Error>> { ... }
fn find_tag_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> 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.
fn find_commit_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<CommitRefIter<'a>, Error<Self::Error>>
fn find_commit_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<CommitRefIter<'a>, Error<Self::Error>>
Like find(…)
, but flattens the Result<Option<_>>
into a single Result
making a non-existing object an error
while returning the desired iterator type.
fn find_tree_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<TreeRefIter<'a>, Error<Self::Error>>
fn find_tree_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<TreeRefIter<'a>, Error<Self::Error>>
Like find(…)
, but flattens the Result<Option<_>>
into a single Result
making a non-existing object an error
while returning the desired iterator type.
fn find_tag_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<TagRefIter<'a>, Error<Self::Error>>
fn find_tag_iter(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8, Global>,
pack_cache: &mut impl DecodeEntry
) -> Result<TagRefIter<'a>, Error<Self::Error>>
Like find(…)
, but flattens the Result<Option<_>>
into a single Result
making a non-existing object an error
while returning the desired iterator type.