pub struct DependencyModules<'a> {
pub package: &'a ResolvedPackage,
pub wrapped: bool,
pub modules: Vec<Name>,
}Expand description
A dependency as the package being compiled sees it: the resolved package, whether this package sees it wrapped, and the modules it offers.
modules holds the dependency’s public modules only, by their names within it —
what a package exposes is
every module of src/ except the ones private-modules names and every module foreign facade. A name that would have reached one of those is absent from the map
this builds, so it fails as a module that does not exist rather than as one that is
refused.
Fields§
§package: &'a ResolvedPackage§wrapped: bool§modules: Vec<Name>Auto Trait Implementations§
impl<'a> Freeze for DependencyModules<'a>
impl<'a> RefUnwindSafe for DependencyModules<'a>
impl<'a> Send for DependencyModules<'a>
impl<'a> Sync for DependencyModules<'a>
impl<'a> Unpin for DependencyModules<'a>
impl<'a> UnsafeUnpin for DependencyModules<'a>
impl<'a> UnwindSafe for DependencyModules<'a>
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