pub struct GraphPackage {
pub name: String,
pub import_name: String,
pub dir: PathBuf,
pub canonical: PathBuf,
pub manifest: Manifest,
pub manifest_file: FileId,
pub has_lib: bool,
pub has_main: bool,
pub registry: bool,
pub dependencies: Vec<Edge>,
pub dev_dependencies: Vec<Edge>,
}Expand description
One package of a Graph.
Fields§
§name: String§import_name: String§dir: PathBufWhere its files are read: the root as the caller spelled it, and a
dependency joined onto its declarer’s dir, such as ../geom.
canonical: PathBufreal_path of dir, which identifies the package (spec §3.3).
manifest: Manifest§manifest_file: FileIdIts nova.toml, in the caller’s FileDb.
has_lib: bool§has_main: bool§registry: boolWhether it was found in the registry directory (spec 3.3b §5.4). Its warnings are not shown.
dependencies: Vec<Edge>§dev_dependencies: Vec<Edge>Read for the root package only (spec §3.3).
Trait Implementations§
Source§impl Clone for GraphPackage
impl Clone for GraphPackage
Auto Trait Implementations§
impl Freeze for GraphPackage
impl RefUnwindSafe for GraphPackage
impl Send for GraphPackage
impl Sync for GraphPackage
impl Unpin for GraphPackage
impl UnsafeUnpin for GraphPackage
impl UnwindSafe for GraphPackage
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