pub struct RawCells { /* private fields */ }Expand description
Raw values that spreadsheets parse back: numbers without digit grouping
with the decimals the grid shows, Bool as TRUE or FALSE. A
summary cell is written by its value as any other: an aggregate Float
as 1234.50, a Bool group key as TRUE.
| Value | Text |
|---|---|
Int | -1234 |
Float | With the decimals of its column’s NumberFormat (-0.49, 1234.50 with two), never with an exponent; with NumberPrecision::Full, the shortest text that parses back to the same number (-0.4899999999999949, 1234.5). NaN and infinities: empty |
Decimal | Its digits with its scale (12.30), never with an exponent (feature decimal) |
Bool | TRUE, FALSE |
Text | As is |
Timestamp | In UTC as 2026-11-04 12:34:56, the text of the cell: Excel and LibreOffice read it as a date and time |
Icon, Image | Its text |
Custom | GridValue::export_value as above, or the text of the cell |
Empty | Empty |
Implementations§
Source§impl RawCells
impl RawCells
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Raw values with . as the decimal separator and the decimals the
grid shows.
Sourcepub const fn with_precision(self, precision: NumberPrecision) -> Self
pub const fn with_precision(self, precision: NumberPrecision) -> Self
Sets how many decimals a Float gets (default
NumberPrecision::Shown).
Sourcepub const fn precision(&self) -> NumberPrecision
pub const fn precision(&self) -> NumberPrecision
How many decimals a Float gets.
Sourcepub const fn with_decimal_separator(self, separator: char) -> Self
pub const fn with_decimal_separator(self, separator: char) -> Self
Writes separator between the whole and fractional digits of a
Float or a Decimal, for example , for a spreadsheet in a Russian
locale.
Sourcepub const fn decimal_separator(&self) -> char
pub const fn decimal_separator(&self) -> char
The decimal separator of a Float or a Decimal.
Trait Implementations§
Source§impl<R: GridRow> CellExporter<R> for RawCells
impl<R: GridRow> CellExporter<R> for RawCells
Source§fn write_cell(&self, cell: &ExportCell<'_, R>, out: &mut String)
fn write_cell(&self, cell: &ExportCell<'_, R>, out: &mut String)
Appends the text of
cell to out.impl Copy for RawCells
impl Eq for RawCells
impl StructuralPartialEq for RawCells
Auto Trait Implementations§
impl Freeze for RawCells
impl RefUnwindSafe for RawCells
impl Send for RawCells
impl Sync for RawCells
impl Unpin for RawCells
impl UnsafeUnpin for RawCells
impl UnwindSafe for RawCells
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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>
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().