#[non_exhaustive]pub enum CellValue {
Text(String),
Float(f64),
Int(i64),
Bool(bool),
Missing,
}Expand description
A single table cell value (RFC-034 §4.2).
CellValue is intentionally crate-local (architect ruling, RFC-033–042
review Q4): it models table-ingestion cells, not core Tensor dynamic values,
and is distinct from matten::Element (it is not an alias). Text holds an
owned String (core Element::Text uses Arc<str>); the representation is a
local, practical choice that can change without affecting the public model.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
Free text that did not parse as a number or boolean.
Float(f64)
A floating-point value.
Int(i64)
An integer value.
Bool(bool)
A boolean (true / false).
Missing
A missing / empty cell.
Trait Implementations§
impl StructuralPartialEq for CellValue
Auto Trait Implementations§
impl Freeze for CellValue
impl RefUnwindSafe for CellValue
impl Send for CellValue
impl Sync for CellValue
impl Unpin for CellValue
impl UnsafeUnpin for CellValue
impl UnwindSafe for CellValue
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