pub enum WorkspaceType {
Workspace,
Crate,
}Expand description
Type of workspace structure
Determined by [workspace] section in Cargo.toml:
Workspace: Has[workspace]section (multi-crate or single-crate in subdirectory)Crate: No[workspace]section (single crate at root)
Variants§
Workspace
Multi-crate workspace or single crate in subdirectory
File layout: crates/{crate}/src/*.rs or {crate}/src/*.rs
Crate
Single crate at workspace root
File layout: src/*.rs
Trait Implementations§
Source§impl Clone for WorkspaceType
impl Clone for WorkspaceType
Source§fn clone(&self) -> WorkspaceType
fn clone(&self) -> WorkspaceType
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 WorkspaceType
impl Debug for WorkspaceType
Source§impl Default for WorkspaceType
impl Default for WorkspaceType
Source§fn default() -> WorkspaceType
fn default() -> WorkspaceType
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorkspaceType
impl PartialEq for WorkspaceType
Source§fn eq(&self, other: &WorkspaceType) -> bool
fn eq(&self, other: &WorkspaceType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WorkspaceType
impl Eq for WorkspaceType
impl StructuralPartialEq for WorkspaceType
Auto Trait Implementations§
impl Freeze for WorkspaceType
impl RefUnwindSafe for WorkspaceType
impl Send for WorkspaceType
impl Sync for WorkspaceType
impl Unpin for WorkspaceType
impl UnsafeUnpin for WorkspaceType
impl UnwindSafe for WorkspaceType
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