pub trait TreeReader {
// Required methods
fn tree_hash(&self, revision: &str, path: &str) -> AppResult<TreeHash>;
fn file_at(&self, revision: &str, path: &str) -> AppResult<Vec<u8>>;
fn list_entries(
&self,
revision: &str,
path: &str,
) -> AppResult<Vec<TreeEntry>>;
}Expand description
Read access to git tree objects.
Required Methods§
Sourcefn tree_hash(&self, revision: &str, path: &str) -> AppResult<TreeHash>
fn tree_hash(&self, revision: &str, path: &str) -> AppResult<TreeHash>
Returns the OID of the tree at the given path and revision.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".