#[non_exhaustive]pub enum SparseIndexLoad {
Expand,
Preserve,
}Expand description
How IndexFile::load treats sparse-directory placeholders.
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.
Expand
Replace every placeholder with the blob entries of its tree, so each path is a row.
Preserve
Keep placeholders as they are (no tree reads). For read-mostly operations such as
status and diff on cone sparse-index checkouts.
Trait Implementations§
Source§impl Clone for SparseIndexLoad
impl Clone for SparseIndexLoad
impl Copy for SparseIndexLoad
Source§impl Debug for SparseIndexLoad
impl Debug for SparseIndexLoad
Source§impl Default for SparseIndexLoad
impl Default for SparseIndexLoad
impl Eq for SparseIndexLoad
Source§impl PartialEq for SparseIndexLoad
impl PartialEq for SparseIndexLoad
impl StructuralPartialEq for SparseIndexLoad
Auto Trait Implementations§
impl Forget for SparseIndexLoad
impl Freeze for SparseIndexLoad
impl RefUnwindSafe for SparseIndexLoad
impl Send for SparseIndexLoad
impl Sync for SparseIndexLoad
impl Unpin for SparseIndexLoad
impl UnsafeUnpin for SparseIndexLoad
impl UnwindSafe for SparseIndexLoad
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§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.