pub trait FindExt: Find {
// Provided methods
fn find<'a>(&self, id: &oid, buffer: &'a mut Vec<u8>) -> ExnResult<Data<'a>> { ... }
fn find_blob<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<BlobRef<'a>> { ... }
fn find_tree<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<TreeRef<'a>> { ... }
fn find_commit<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<CommitRef<'a>> { ... }
fn find_tag<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<TagRef<'a>> { ... }
fn find_commit_iter<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<CommitRefIter<'a>> { ... }
fn find_tree_iter<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<TreeRefIter<'a>> { ... }
fn find_tag_iter<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<TagRefIter<'a>> { ... }
}Expand description
An extension trait with convenience functions.
Provided Methods§
Sourcefn find<'a>(&self, id: &oid, buffer: &'a mut Vec<u8>) -> ExnResult<Data<'a>>
fn find<'a>(&self, id: &oid, buffer: &'a mut Vec<u8>) -> ExnResult<Data<'a>>
Like try_find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error.
Sourcefn find_blob<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<BlobRef<'a>>
fn find_blob<'a>( &self, id: &oid, buffer: &'a mut Vec<u8>, ) -> ExnResult<BlobRef<'a>>
Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error
while returning the desired object type.
Sourcefn find_tree<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<TreeRef<'a>>
fn find_tree<'a>( &self, id: &oid, buffer: &'a mut Vec<u8>, ) -> ExnResult<TreeRef<'a>>
Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error
while returning the desired object type.
Sourcefn find_commit<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<CommitRef<'a>>
fn find_commit<'a>( &self, id: &oid, buffer: &'a mut Vec<u8>, ) -> ExnResult<CommitRef<'a>>
Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error
while returning the desired object type.
Sourcefn find_tag<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<TagRef<'a>>
fn find_tag<'a>( &self, id: &oid, buffer: &'a mut Vec<u8>, ) -> ExnResult<TagRef<'a>>
Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error
while returning the desired object type.
Sourcefn find_commit_iter<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<CommitRefIter<'a>>
fn find_commit_iter<'a>( &self, id: &oid, buffer: &'a mut Vec<u8>, ) -> ExnResult<CommitRefIter<'a>>
Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error
while returning the desired iterator type.
Sourcefn find_tree_iter<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<TreeRefIter<'a>>
fn find_tree_iter<'a>( &self, id: &oid, buffer: &'a mut Vec<u8>, ) -> ExnResult<TreeRefIter<'a>>
Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error
while returning the desired iterator type.
Sourcefn find_tag_iter<'a>(
&self,
id: &oid,
buffer: &'a mut Vec<u8>,
) -> ExnResult<TagRefIter<'a>>
fn find_tag_iter<'a>( &self, id: &oid, buffer: &'a mut Vec<u8>, ) -> ExnResult<TagRefIter<'a>>
Like find(…), but flattens the Result<Option<_>> into a single Result making a non-existing object an error
while returning the desired iterator type.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".