pub struct PreprocessResult {
pub regular_entries: Vec<PackEntry>,
pub virtual_entries: Vec<PackEntry>,
pub source_map: HashMap<PathBuf, PathBuf>,
}Expand description
The result of preprocessing a pack’s file entries.
Fields§
§regular_entries: Vec<PackEntry>Entries that were NOT preprocessed (pass through unchanged).
virtual_entries: Vec<PackEntry>Virtual entries created by preprocessing (point to datastore files).
source_map: HashMap<PathBuf, PathBuf>Maps virtual entry absolute_path → original source path in pack.
Implementations§
Source§impl PreprocessResult
impl PreprocessResult
Sourcepub fn passthrough(entries: Vec<PackEntry>) -> Self
pub fn passthrough(entries: Vec<PackEntry>) -> Self
Create a passthrough result where all entries are regular (no preprocessing).
Sourcepub fn merged_entries(&self) -> Vec<PackEntry>
pub fn merged_entries(&self) -> Vec<PackEntry>
Return all entries (regular + virtual) merged into one list, sorted by relative path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreprocessResult
impl RefUnwindSafe for PreprocessResult
impl Send for PreprocessResult
impl Sync for PreprocessResult
impl Unpin for PreprocessResult
impl UnsafeUnpin for PreprocessResult
impl UnwindSafe for PreprocessResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more