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