Skip to main content

LogicalObjectSource

Trait LogicalObjectSource 

Source
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§

Source

fn remaining_elements(&self) -> u64

Returns the remaining elements of the inner iterator

Source

fn root_dir_filenumbers(&self) -> &Vec<u64>

Returns the file numbers of root directories.

Returns a mapping of file numbers to their symlink real paths.

Returns a mapping of hardlink file numbers to their target file numbers.

Source

fn directory_children(&self) -> &HashMap<u64, Vec<u64>>

Returns a mapping of directory file numbers to their children file numbers.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§