Struct docx_rs::DocDefaults
source · pub struct DocDefaults { /* private fields */ }
Implementations§
source§impl DocDefaults
impl DocDefaults
pub fn new() -> DocDefaults
pub fn size(self, size: usize) -> Self
pub fn spacing(self, spacing: i32) -> Self
pub fn fonts(self, font: RunFonts) -> Self
pub fn line_spacing(self, spacing: LineSpacing) -> Self
Trait Implementations§
source§impl Clone for DocDefaults
impl Clone for DocDefaults
source§fn clone(&self) -> DocDefaults
fn clone(&self) -> DocDefaults
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 DocDefaults
impl Debug for DocDefaults
source§impl Default for DocDefaults
impl Default for DocDefaults
source§impl ElementReader for DocDefaults
impl ElementReader for DocDefaults
fn read<R: Read>( r: &mut EventReader<R>, _attrs: &[OwnedAttribute] ) -> Result<Self, ReaderError>
source§impl PartialEq for DocDefaults
impl PartialEq for DocDefaults
source§fn eq(&self, other: &DocDefaults) -> bool
fn eq(&self, other: &DocDefaults) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DocDefaults
impl Serialize for DocDefaults
impl StructuralPartialEq for DocDefaults
Auto Trait Implementations§
impl Freeze for DocDefaults
impl RefUnwindSafe for DocDefaults
impl Send for DocDefaults
impl Sync for DocDefaults
impl Unpin for DocDefaults
impl UnwindSafe for DocDefaults
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