Enum gix_dir::walk::EmissionMode
source · pub enum EmissionMode {
Matching,
CollapseDirectory,
}
Expand description
The way entries are emitted using the Delegate.
The choice here controls if entries are emitted immediately, or have to be held back.
Variants§
Matching
Emit each entry as it matches exactly, without doing any kind of simplification.
Emissions in this mode are happening as they occur, without any buffering or ordering.
CollapseDirectory
Emit only a containing directory if all of its entries are of the same type.
Note that doing so is more expensive as it requires us to keep track of all entries in the directory structure until it’s clear what to finally emit.
Trait Implementations§
source§impl Clone for EmissionMode
impl Clone for EmissionMode
source§fn clone(&self) -> EmissionMode
fn clone(&self) -> EmissionMode
Returns a copy of the value. Read more
1.0.0 · 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 EmissionMode
impl Debug for EmissionMode
source§impl Default for EmissionMode
impl Default for EmissionMode
source§fn default() -> EmissionMode
fn default() -> EmissionMode
Returns the “default value” for a type. Read more
source§impl Hash for EmissionMode
impl Hash for EmissionMode
source§impl Ord for EmissionMode
impl Ord for EmissionMode
source§fn cmp(&self, other: &EmissionMode) -> Ordering
fn cmp(&self, other: &EmissionMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EmissionMode
impl PartialEq for EmissionMode
source§impl PartialOrd for EmissionMode
impl PartialOrd for EmissionMode
impl Copy for EmissionMode
impl Eq for EmissionMode
impl StructuralPartialEq for EmissionMode
Auto Trait Implementations§
impl Freeze for EmissionMode
impl RefUnwindSafe for EmissionMode
impl Send for EmissionMode
impl Sync for EmissionMode
impl Unpin for EmissionMode
impl UnwindSafe for EmissionMode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)