pub struct ParsedWidth {
pub value: usize,
pub width_type: WidthType,
}Expand description
Parsed OOXML cell width: a numeric value paired with its unit type.
Returned by super::parse_width and consumed by docx_rs::TableCell::width.
Fields§
§value: usizeWidth value in the target unit (twips for Dxa, percentage * 50 for Pct).
width_type: WidthTypeOOXML width type.
Trait Implementations§
Source§impl Clone for ParsedWidth
impl Clone for ParsedWidth
Source§fn clone(&self) -> ParsedWidth
fn clone(&self) -> ParsedWidth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParsedWidth
Source§impl Debug for ParsedWidth
impl Debug for ParsedWidth
Source§impl PartialEq for ParsedWidth
impl PartialEq for ParsedWidth
impl StructuralPartialEq for ParsedWidth
Auto Trait Implementations§
impl Freeze for ParsedWidth
impl RefUnwindSafe for ParsedWidth
impl Send for ParsedWidth
impl Sync for ParsedWidth
impl Unpin for ParsedWidth
impl UnsafeUnpin for ParsedWidth
impl UnwindSafe for ParsedWidth
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