pub enum GutterSpec {
Text(String),
Bar(f64),
Spark(f64),
Labeled {
name: String,
value: String,
},
}Expand description
One published gutter-cell value. The display consumes this via
the phase render handle; None in the activity’s slot means
“derive automatically”.
Variants§
Text(String)
Pre-rendered layout text, placed in the cell verbatim (truncated to the cell width by the display).
Bar(f64)
Completion fraction 0..=1 → house braille bar.
Spark(f64)
One trend sample → sparkline ring + current-value label.
Labeled
A key metric: label and value rendered on opposite sides of the cell.
Declared as gutter: { final: { name: "recall", value: "{recall}" } }.
The pair is explicit rather than split out of one string because the two
orders both occur in practice (recall 96% vs ≈900/s units), so no
splitting rule can infer which token is the value.
Trait Implementations§
Source§impl Clone for GutterSpec
impl Clone for GutterSpec
Source§impl Debug for GutterSpec
impl Debug for GutterSpec
Source§impl PartialEq for GutterSpec
impl PartialEq for GutterSpec
impl StructuralPartialEq for GutterSpec
Auto Trait Implementations§
impl Freeze for GutterSpec
impl RefUnwindSafe for GutterSpec
impl Send for GutterSpec
impl Sync for GutterSpec
impl Unpin for GutterSpec
impl UnsafeUnpin for GutterSpec
impl UnwindSafe for GutterSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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