#[non_exhaustive]pub enum DisplayFormat {
Full,
DeltaOnly,
NoPct,
Arrow,
PctOnly,
}Expand description
Per-row display layout for write_diff.
Full (default) emits the seven-column form
(group | threads | metric | baseline | candidate | delta | %).
The remaining variants are compact shortcuts for common
operator workflows; each resolves to a fixed Column set
before the renderer runs. A --columns override on the same
invocation wins over the format’s default column set.
Arrow collapses baseline / candidate into a single cell
shaped <baseline> -> <candidate> so a narrow display still
surfaces directionality. The arrow column is paired with the
dedicated Delta + Pct + Uptime columns (not fused into the
arrow cell itself), so the renderer keeps the deltas
readable on either side of the arrow form. The arrow cell
shape mirrors cgroup_cell’s so primary and cgroup tables
stay visually consistent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Full
Default — emit baseline, candidate, delta, and pct columns alongside group / threads / metric.
DeltaOnly
Drop baseline + candidate columns; keep delta + pct.
NoPct
Drop pct column; keep baseline + candidate + delta.
Arrow
Arrow form: <baseline> -> <candidate> cell paired with
the dedicated Delta + Pct + Uptime columns. Compact view
for “show me direction at a glance” while still carrying
the deltas on the same row.
PctOnly
Drop baseline / candidate / delta; keep pct only.
Trait Implementations§
Source§impl Clone for DisplayFormat
impl Clone for DisplayFormat
Source§fn clone(&self) -> DisplayFormat
fn clone(&self) -> DisplayFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DisplayFormat
impl Debug for DisplayFormat
Source§impl Default for DisplayFormat
impl Default for DisplayFormat
Source§fn default() -> DisplayFormat
fn default() -> DisplayFormat
Source§impl PartialEq for DisplayFormat
impl PartialEq for DisplayFormat
Source§impl ValueEnum for DisplayFormat
impl ValueEnum for DisplayFormat
impl Copy for DisplayFormat
impl Eq for DisplayFormat
impl StructuralPartialEq for DisplayFormat
Auto Trait Implementations§
impl Freeze for DisplayFormat
impl RefUnwindSafe for DisplayFormat
impl Send for DisplayFormat
impl Sync for DisplayFormat
impl Unpin for DisplayFormat
impl UnwindSafe for DisplayFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more