pub trait LogicalObjectSource: Iterator<Item = Result<(FileTypeEncodingInformation, FileHeader)>> {
// Required methods
fn remaining_elements(&self) -> u64;
fn root_dir_filenumbers(&self) -> &Vec<u64>;
fn symlink_real_paths(&self) -> &HashMap<u64, PathBuf>;
fn hardlink_map(&self) -> &HashMap<u64, u64>;
fn directory_children(&self) -> &HashMap<u64, Vec<u64>>;
}Expand description
Trait for abstracting different file input sources.
Implementors of this trait provide logical object data (e.g., from file systems).
Required Methods§
Sourcefn remaining_elements(&self) -> u64
fn remaining_elements(&self) -> u64
Returns the remaining elements of the inner iterator
Sourcefn root_dir_filenumbers(&self) -> &Vec<u64>
fn root_dir_filenumbers(&self) -> &Vec<u64>
Returns the file numbers of root directories.
Sourcefn symlink_real_paths(&self) -> &HashMap<u64, PathBuf>
fn symlink_real_paths(&self) -> &HashMap<u64, PathBuf>
Returns a mapping of file numbers to their symlink real paths.
Sourcefn hardlink_map(&self) -> &HashMap<u64, u64>
fn hardlink_map(&self) -> &HashMap<u64, u64>
Returns a mapping of hardlink file numbers to their target file numbers.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".