pub struct ExportCell<'a, R: GridRow> { /* private fields */ }Expand description
One exported cell: what a CellExporter writes.
Implementations§
Source§impl<'a, R: GridRow> ExportCell<'a, R>
impl<'a, R: GridRow> ExportCell<'a, R>
Sourcepub fn row(&self) -> Option<&'a R>
pub fn row(&self) -> Option<&'a R>
The application row of the cell; None in a caption, a footer or
the totals.
Sourcepub fn value(&self) -> CellValue<'a>
pub fn value(&self) -> CellValue<'a>
The value of the cell, read once: the row’s value, or the optimistic value of an edit waiting for its answer, as on screen; a summary row’s group key value, aggregate or totals label.
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Returns true if value is an edit’s optimistic value,
not yet confirmed.
Sourcepub fn row_value(&self) -> Option<CellValue<'a>>
pub fn row_value(&self) -> Option<CellValue<'a>>
The row’s own value of the cell, under a pending one; the same as
value otherwise. None in a summary row.
Sourcepub fn number_format(&self) -> NumberFormat
pub fn number_format(&self) -> NumberFormat
How the cell’s column shows its numbers
(GridColumn::with_number_format).
Sourcepub fn number_hint(&self) -> Option<NumberHint>
pub fn number_hint(&self) -> Option<NumberHint>
How the grid shows the number in the cell, so that a spreadsheet
format can match the screen: Float with its column’s digits after
the point,
Decimal with its scale, Int with none; a custom value by its
GridValue::export_value. None
for a value that is not a number, a Timestamp included. No
allocation.
Sourcepub fn line(&self) -> ExportLine
pub fn line(&self) -> ExportLine
What the cell’s row is.
Sourcepub fn group(&self) -> Option<GroupInfo<'a>>
pub fn group(&self) -> Option<GroupInfo<'a>>
The group of a caption or a footer cell: its path, row count and aggregates.
Sourcepub fn is_aggregate(&self) -> bool
pub fn is_aggregate(&self) -> bool
Returns true if the cell holds an aggregate: its group’s in a caption or a footer, the whole view’s in the totals. A caption’s key value and the totals label are not aggregates.
Trait Implementations§
Source§impl<R: GridRow> Clone for ExportCell<'_, R>
impl<R: GridRow> Clone for ExportCell<'_, R>
impl<R: GridRow> Copy for ExportCell<'_, R>
Auto Trait Implementations§
impl<'a, R> Freeze for ExportCell<'a, R>
impl<'a, R> !RefUnwindSafe for ExportCell<'a, R>
impl<'a, R> Send for ExportCell<'a, R>
impl<'a, R> Sync for ExportCell<'a, R>
impl<'a, R> Unpin for ExportCell<'a, R>
impl<'a, R> UnsafeUnpin for ExportCell<'a, R>
impl<'a, R> !UnwindSafe for ExportCell<'a, R>
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<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>
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>
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)
&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)
&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<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