Struct mun_project::Package
source · pub struct Package { /* private fields */ }
Implementations§
source§impl Package
impl Package
sourcepub fn new(manifest: Manifest, manifest_path: &Path) -> Self
pub fn new(manifest: Manifest, manifest_path: &Path) -> Self
Creates a package from a manifest and its location
sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
Creates a package by loading the information from a file
sourcepub fn manifest_path(&self) -> &Path
pub fn manifest_path(&self) -> &Path
Returns the path of the manifest
sourcepub fn package_id(&self) -> &PackageId
pub fn package_id(&self) -> &PackageId
Returns the PackageId
object for the package
sourcepub fn source_directory(&self) -> PathBuf
pub fn source_directory(&self) -> PathBuf
Returns the path to the source directory of the package