pub struct DataColumn {
pub id: u64,
pub name: String,
pub width: Option<f64>,
/* private fields */
}Expand description
One column of a sheet, including raw source, values, styles, etc.
IMPORTANT: src, data, cell_types, compiled_src and styles
must all stay the same length.
Fields§
§id: u64Identifier, stable across renames and repositioning. Compiled formulas refer to a column by this rather than by name or position.
name: StringDisplay name, empty unless one was set.
width: Option<f64>Excel/OpenXML column width in character units, when one was explicitly stored.
Implementations§
Source§impl DataColumn
impl DataColumn
Sourcepub fn src(&self, row: usize) -> Option<&str>
pub fn src(&self, row: usize) -> Option<&str>
The raw text of a cell, exactly as typed, or None past the end.
Sourcepub fn value(&self, row: usize) -> Option<ResultData>
pub fn value(&self, row: usize) -> Option<ResultData>
The computed value of a cell, or None past the end
Sourcepub fn values(&self) -> &ColumnData
pub fn values(&self) -> &ColumnData
The whole value column, for callers that want to work with the typed representation rather than row by row.
Sourcepub fn cell_type(&self, row: usize) -> Option<CellType>
pub fn cell_type(&self, row: usize) -> Option<CellType>
The intrinsic data type of a cell, or None past the end.
Sourcepub fn set_cell_type(&mut self, row: usize, cell_type: CellType)
pub fn set_cell_type(&mut self, row: usize, cell_type: CellType)
Sets the intrinsic data type of a cell at row.
Sourcepub fn compiled(&self, row: usize) -> Option<&CompiledFormula>
pub fn compiled(&self, row: usize) -> Option<&CompiledFormula>
A cell’s compiled formula, or None past the end. A cell holding a
literal has an empty one rather than no entry.
Trait Implementations§
Source§impl Clone for DataColumn
impl Clone for DataColumn
Source§fn clone(&self) -> DataColumn
fn clone(&self) -> DataColumn
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more