Skip to main content

Workspace

Struct Workspace 

Source
pub struct Workspace { /* private fields */ }

Implementations§

Source§

impl Workspace

Source

pub fn new(member_roots: impl IntoIterator<Item = RepoPath>) -> Workspace

Source

pub fn with_skipped_manifests( self, skipped: impl IntoIterator<Item = SkippedManifest>, ) -> Workspace

Source

pub fn skipped_manifest_in(&self, folder: &str) -> Option<&SkippedManifest>

Source

pub fn join(&mut self, other: Workspace)

Source

pub fn has_members(&self) -> bool

Source

pub fn member_roots(&self) -> impl Iterator<Item = &RepoPath>

Source

pub fn packages(&self) -> impl Iterator<Item = Package<'_>>

Source

pub fn package_of(&self, path: &RepoPath) -> Package<'_>

Trait Implementations§

Source§

impl Clone for Workspace

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Workspace

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Workspace

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for Workspace

Source§

impl PartialEq for Workspace

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Workspace

Auto Trait Implementations§

§

impl Forget for Workspace

§

impl Freeze for Workspace
where *const LeafNode<RepoPath, SetValZST> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(RepoPath, SetValZST)>>: Freeze, *const LeafNode<SkippedManifest, SetValZST> is !null: Freeze, PhantomData<Box<(SkippedManifest, SetValZST)>>: Freeze,

§

impl Move for Workspace

§

impl RefUnwindSafe for Workspace

§

impl Send for Workspace
where NodeRef<Owned, RepoPath, SetValZST, LeafOrInternal>: Send, BoxRaw<(RepoPath, SetValZST)>: Send, NodeRef<Owned, SkippedManifest, SetValZST, LeafOrInternal>: Send, BoxRaw<(SkippedManifest, SetValZST)>: Send,

§

impl Sync for Workspace
where NodeRef<Owned, RepoPath, SetValZST, LeafOrInternal>: Sync, BoxRaw<(RepoPath, SetValZST)>: Sync, NodeRef<Owned, SkippedManifest, SetValZST, LeafOrInternal>: Sync, BoxRaw<(SkippedManifest, SetValZST)>: Sync,

§

impl Unpin for Workspace
where *const LeafNode<RepoPath, SetValZST> is !null: Unpin, Box<(RepoPath, SetValZST)>: Unpin, *const LeafNode<SkippedManifest, SetValZST> is !null: Unpin, Box<(SkippedManifest, SetValZST)>: Unpin,

§

impl UnsafeUnpin for Workspace
where *const LeafNode<RepoPath, SetValZST> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(RepoPath, SetValZST)>>: UnsafeUnpin, *const LeafNode<SkippedManifest, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(SkippedManifest, SetValZST)>>: UnsafeUnpin,

§

impl UnwindSafe for Workspace

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Resource for T
where T: 'static,

Source§

type Rep = Option<T>

The type which is actually stored in-memory for this resource. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.