pub struct CheckedSource {
pub module: CheckedModule,
pub file: Option<SourceFileId>,
pub root_dir: PathBuf,
}Expand description
One module of a build the check built a tree for, with the file it was read from and
the source root it was read under. Which list of PackageCheck holds it says
whether it checked.
Fields§
§module: CheckedModuleThe module, as check_module_recovering handed it back.
file: Option<SourceFileId>The file it was read from, which an error’s labels about it point into. None for
no module today, since only a module that parsed from a file can be checked.
root_dir: PathBufThe directory of the source root it was read under — a package’s src/ or
tests/. A facade’s companion sits below it at the same path the facade does
(A facade names a boundary, not a
backend), and
nothing here looks for one: that is the build’s business, not the check’s.
Auto Trait Implementations§
impl Freeze for CheckedSource
impl RefUnwindSafe for CheckedSource
impl Send for CheckedSource
impl Sync for CheckedSource
impl Unpin for CheckedSource
impl UnsafeUnpin for CheckedSource
impl UnwindSafe for CheckedSource
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