easydoc_writer/util/parsed_width.rs
1//! Parsed OOXML cell width type.
2
3/// Parsed OOXML cell width: a numeric value paired with its unit type.
4///
5/// Returned by [`super::parse_width`] and consumed by `docx_rs::TableCell::width`.
6#[derive(Debug, Clone, Copy, PartialEq)]
7pub struct ParsedWidth {
8 /// Width value in the target unit (twips for `Dxa`, percentage * 50 for `Pct`).
9 pub value: usize,
10 /// OOXML width type.
11 pub width_type: docx_rs::WidthType,
12}