pub enum ProjectManifest {
ProjectJson(ManifestPath),
CargoToml(ManifestPath),
}Variants§
ProjectJson(ManifestPath)
CargoToml(ManifestPath)
Implementations§
source§impl ProjectManifest
impl ProjectManifest
pub fn from_manifest_file(path: AbsPathBuf) -> Result<ProjectManifest>
pub fn discover_single(path: &AbsPath) -> Result<ProjectManifest>
pub fn discover(path: &AbsPath) -> Result<Vec<ProjectManifest>>
pub fn discover_all(paths: &[AbsPathBuf]) -> Vec<ProjectManifest>
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 Display for ProjectManifest
impl Display 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
This method tests for
self and other values to be equal, and is used
by ==.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 moreimpl Eq for ProjectManifest
impl StructuralEq for ProjectManifest
impl StructuralPartialEq for ProjectManifest
Auto Trait Implementations§
impl RefUnwindSafe for ProjectManifest
impl Send for ProjectManifest
impl Sync for ProjectManifest
impl Unpin for ProjectManifest
impl UnwindSafe for ProjectManifest
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.