pub struct Linked {
pub modules: Vec<LinkedModule>,
pub host_modules: Vec<String>,
pub errors: Vec<String>,
pub lints: Vec<String>,
pub checks: Vec<(PathBuf, CheckInfo)>,
pub cached: usize,
/* private fields */
}Expand description
Fields§
§modules: Vec<LinkedModule>Every module the walk took, in the order it took them.
host_modules: Vec<String>Names the host is expected to provide at run time, so the bundle records them as its own requirements rather than carrying code for them.
errors: Vec<String>Type errors and unresolved requires. A module with a type error is absent from
the bundle, so the bundle is only handed out (bundle) when this
is empty: a program missing a module dies at its first require, far from here.
lints: Vec<String>Lints from every module, which do not stop a bundle: whether they stop the run
is the caller’s, and the caller is what knows about strict.
checks: Vec<(PathBuf, CheckInfo)>The full check of each module, for a reader that wants more than the flattened
errors and lints — the requires, the
dependencies, the per-file verdict.
cached: usizeHow many typed modules came from the store rather than the checker. Zero without
a store. The total to say it against is the typed count of modules.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Linked
impl RefUnwindSafe for Linked
impl Send for Linked
impl Sync for Linked
impl Unpin for Linked
impl UnsafeUnpin for Linked
impl UnwindSafe for Linked
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more