pub struct CargoWorkspace { /* private fields */ }Expand description
A discovered Cargo workspace.
Implementations§
Source§impl CargoWorkspace
impl CargoWorkspace
Sourcepub fn discover(start: impl AsRef<Path>) -> Result<Self, CargoWorkspaceError>
pub fn discover(start: impl AsRef<Path>) -> Result<Self, CargoWorkspaceError>
Discovers a workspace from a starting path.
Sourcepub fn root(&self) -> &WorkspaceRoot
pub fn root(&self) -> &WorkspaceRoot
Returns the workspace root.
Sourcepub fn members(&self) -> &[CargoPackage]
pub fn members(&self) -> &[CargoPackage]
Returns the discovered workspace members.
Trait Implementations§
Source§impl Clone for CargoWorkspace
impl Clone for CargoWorkspace
Source§fn clone(&self) -> CargoWorkspace
fn clone(&self) -> CargoWorkspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CargoWorkspace
impl Debug for CargoWorkspace
Source§impl<'de> Deserialize<'de> for CargoWorkspace
impl<'de> Deserialize<'de> for CargoWorkspace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CargoWorkspace
impl PartialEq for CargoWorkspace
Source§fn eq(&self, other: &CargoWorkspace) -> bool
fn eq(&self, other: &CargoWorkspace) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CargoWorkspace
impl Serialize for CargoWorkspace
impl Eq for CargoWorkspace
impl StructuralPartialEq for CargoWorkspace
Auto Trait Implementations§
impl Freeze for CargoWorkspace
impl RefUnwindSafe for CargoWorkspace
impl Send for CargoWorkspace
impl Sync for CargoWorkspace
impl Unpin for CargoWorkspace
impl UnsafeUnpin for CargoWorkspace
impl UnwindSafe for CargoWorkspace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.