pub struct Workspace {
pub workspace_crates: Vec<Crate>,
pub other_crates: Vec<Crate>,
pub root: Option<CrateName>,
}Fields§
§workspace_crates: Vec<Crate>§other_crates: Vec<Crate>§root: Option<CrateName>Implementations§
Source§impl Workspace
impl Workspace
pub fn all_crates(&self) -> impl Iterator<Item = &Crate>
pub fn all_crates_mut(&mut self) -> impl Iterator<Item = &mut Crate>
pub fn find_crate<L: Fn() -> String>( &self, name: &CrateName, log_if_missing: L, ) -> Option<&Crate>
pub fn find_crate_opt(&self, name: &CrateName) -> Option<&Crate>
pub fn find_crate_mut<L: Fn() -> String>( &mut self, name: &CrateName, log_if_missing: L, ) -> Option<&mut Crate>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more