pub enum Value {
Null,
Int(i64),
Float(f64),
Str(String),
Text(Text),
}Expand description
A typed table cell.
The type drives sorting (sort) and aggregation (group); the
column’s formatter (or Value::to_text) drives display.
Variants§
Null
No value. Renders empty and sorts last.
Int(i64)
An integer.
Float(f64)
A floating-point number.
Str(String)
Literal text (never parsed as markup).
Text(Text)
Styled text; sorts and groups by its plain string.
Implementations§
Trait Implementations§
Source§impl PartialEq for Value
Values compare by variant and content (floats bit for bit). A
Value::Text never equals anything, itself included, because its base
style cannot be compared: StreamingTable treats writing one as a change.
Prefer Value::Str for data.
impl PartialEq for Value
Values compare by variant and content (floats bit for bit). A
Value::Text never equals anything, itself included, because its base
style cannot be compared: StreamingTable treats writing one as a change.
Prefer Value::Str for data.
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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