#[non_exhaustive]pub enum SparseMode {
Copy,
Full,
Empty,
}Expand description
How a new workspace inherits sparse patterns (jj workspace add --sparse-patterns <mode>).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Copy
Copy all sparse patterns from the current workspace (jj’s default).
Full
Include every file in the new workspace.
Empty
Start with no files — the caller sets patterns afterwards (CoW flow).
Trait Implementations§
Source§impl Clone for SparseMode
impl Clone for SparseMode
Source§fn clone(&self) -> SparseMode
fn clone(&self) -> SparseMode
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 moreimpl Copy for SparseMode
Source§impl Debug for SparseMode
impl Debug for SparseMode
impl Eq for SparseMode
Source§impl PartialEq for SparseMode
impl PartialEq for SparseMode
Source§fn eq(&self, other: &SparseMode) -> bool
fn eq(&self, other: &SparseMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SparseMode
Auto Trait Implementations§
impl Freeze for SparseMode
impl RefUnwindSafe for SparseMode
impl Send for SparseMode
impl Sync for SparseMode
impl Unpin for SparseMode
impl UnsafeUnpin for SparseMode
impl UnwindSafe for SparseMode
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