Struct docx_rust::formatting::TableWidth
source · [−]pub struct TableWidth {
pub value: Option<usize>,
pub unit: Option<TableWidthUnit>,
}
Expand description
Table Width
use docx::formatting::*;
let width = TableWidth::from(42usize);
let width = TableWidth::from(TableWidthUnit::Pct);
let width = TableWidth::from((42, TableWidthUnit::Dxa));
Fields
value: Option<usize>
unit: Option<TableWidthUnit>
Trait Implementations
sourceimpl Clone for TableWidth
impl Clone for TableWidth
sourcefn clone(&self) -> TableWidth
fn clone(&self) -> TableWidth
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TableWidth
impl Debug for TableWidth
sourceimpl Default for TableWidth
impl Default for TableWidth
sourcefn default() -> TableWidth
fn default() -> TableWidth
Returns the “default value” for a type. Read more
sourceimpl From<(usize, TableWidthUnit)> for TableWidth
impl From<(usize, TableWidthUnit)> for TableWidth
sourcefn from(val: (usize, TableWidthUnit)) -> Self
fn from(val: (usize, TableWidthUnit)) -> Self
Converts to this type from the input type.
sourceimpl From<TableWidthUnit> for TableWidth
impl From<TableWidthUnit> for TableWidth
sourcefn from(val: TableWidthUnit) -> Self
fn from(val: TableWidthUnit) -> Self
Converts to this type from the input type.
sourceimpl From<usize> for TableWidth
impl From<usize> for TableWidth
sourceimpl<'__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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more