Struct mun_project::ProjectManifest
source · pub struct ProjectManifest {
pub path: AbsPathBuf,
}
Expand description
A wrapper around a path to a mun project
Fields§
§path: AbsPathBuf
Implementations§
source§impl ProjectManifest
impl ProjectManifest
sourcepub fn from_manifest_path(path: impl AsRef<AbsPath>) -> Result<Self>
pub fn from_manifest_path(path: impl AsRef<AbsPath>) -> Result<Self>
Constructs a new ProjectManifest
from a path
sourcepub fn discover(path: impl AsRef<AbsPath>) -> Result<Vec<ProjectManifest>>
pub fn discover(path: impl AsRef<AbsPath>) -> Result<Vec<ProjectManifest>>
Find all project manifests in the given directory
sourcepub fn discover_all(
paths: impl Iterator<Item = impl AsRef<AbsPath>>
) -> Vec<ProjectManifest>
pub fn discover_all(
paths: impl Iterator<Item = impl AsRef<AbsPath>>
) -> Vec<ProjectManifest>
Find all project manifests in a collection of paths
Trait Implementations§
source§impl Clone for ProjectManifest
impl Clone for ProjectManifest
source§fn clone(&self) -> ProjectManifest
fn clone(&self) -> ProjectManifest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProjectManifest
impl Debug for ProjectManifest
source§impl Hash for ProjectManifest
impl Hash for ProjectManifest
source§impl Ord for ProjectManifest
impl Ord for ProjectManifest
source§fn cmp(&self, other: &ProjectManifest) -> Ordering
fn cmp(&self, other: &ProjectManifest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ProjectManifest> for ProjectManifest
impl PartialEq<ProjectManifest> for ProjectManifest
source§fn eq(&self, other: &ProjectManifest) -> bool
fn eq(&self, other: &ProjectManifest) -> bool
source§impl PartialOrd<ProjectManifest> for ProjectManifest
impl PartialOrd<ProjectManifest> for ProjectManifest
source§fn partial_cmp(&self, other: &ProjectManifest) -> Option<Ordering>
fn partial_cmp(&self, other: &ProjectManifest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more