pub struct PreprocessOutcome {
pub result: OpyResult<(Preprocessed, Vec<FileRecord>)>,
pub files: Vec<FileRecord>,
pub display_root: PathBuf,
pub warnings: Vec<PreprocessWarning>,
}Expand description
The outcome of preprocessing with overlays, retaining the file registry registered so far even when a directive or expansion fails, so callers can map an error’s span file id to its actual source.
Fields§
§result: OpyResult<(Preprocessed, Vec<FileRecord>)>§files: Vec<FileRecord>§display_root: PathBufThe directory the file-registry display_paths resolve against — the
#!mainFile effective directory when the first line redirects the
project root, otherwise the canonicalized input root.
warnings: Vec<PreprocessWarning>Auto Trait Implementations§
impl Freeze for PreprocessOutcome
impl RefUnwindSafe for PreprocessOutcome
impl Send for PreprocessOutcome
impl Sync for PreprocessOutcome
impl Unpin for PreprocessOutcome
impl UnsafeUnpin for PreprocessOutcome
impl UnwindSafe for PreprocessOutcome
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