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 Freeze for TableWidth
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