Struct docx_rust::formatting::TableWidth
source · pub struct TableWidth {
pub value: Option<isize>,
pub unit: Option<TableWidthUnit>,
}Expand description
Table Width
use docx_rust::formatting::*;
let width = TableWidth::from(42isize);
let width = TableWidth::from(TableWidthUnit::Pct);
let width = TableWidth::from((42, TableWidthUnit::Dxa));Fields§
§value: Option<isize>§unit: Option<TableWidthUnit>Trait Implementations§
source§impl Clone for TableWidth
impl Clone for TableWidth
source§fn clone(&self) -> TableWidth
fn clone(&self) -> TableWidth
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TableWidth
impl Debug for TableWidth
source§impl Default for TableWidth
impl Default for TableWidth
source§fn default() -> TableWidth
fn default() -> TableWidth
Returns the “default value” for a type. Read more
source§impl From<(isize, TableWidthUnit)> for TableWidth
impl From<(isize, TableWidthUnit)> for TableWidth
source§fn from(val: (isize, TableWidthUnit)) -> Self
fn from(val: (isize, TableWidthUnit)) -> Self
Converts to this type from the input type.
source§impl From<TableWidthUnit> for TableWidth
impl From<TableWidthUnit> for TableWidth
source§fn from(val: TableWidthUnit) -> Self
fn from(val: TableWidthUnit) -> Self
Converts to this type from the input type.
source§impl From<isize> for TableWidth
impl From<isize> for TableWidth
source§impl<'__input> XmlRead<'__input> for TableWidth
impl<'__input> XmlRead<'__input> for TableWidth
Auto Trait Implementations§
impl RefUnwindSafe for TableWidth
impl Send for TableWidth
impl Sync for TableWidth
impl Unpin for TableWidth
impl UnwindSafe for TableWidth
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