Struct conserve::StoredTree
source · pub struct StoredTree { /* private fields */ }Expand description
Read index and file contents for a version stored in the archive.
Implementations§
Trait Implementations§
source§impl ReadTree for StoredTree
impl ReadTree for StoredTree
source§fn iter_entries(&self, subtree: Apath, exclude: Exclude) -> Result<Self::IT>
fn iter_entries(&self, subtree: Apath, exclude: Exclude) -> Result<Self::IT>
Return an iter of index entries in this stored tree.
type R = ReadStoredFile
type Entry = IndexEntry
type IT = IndexEntryIter<IterStitchedIndexHunks>
source§fn file_contents(&self, entry: &Self::Entry) -> Result<Self::R>
fn file_contents(&self, entry: &Self::Entry) -> Result<Self::R>
Read file contents as a
std::io::Read.source§fn estimate_count(&self) -> Result<u64>
fn estimate_count(&self) -> Result<u64>
Estimate the number of entries in the tree.
This might do somewhat expensive IO, so isn’t the Iter’s
size_hint.