pub struct Styles<'a> {
pub default: DefaultStyle<'a>,
pub latent_styles: LatentStyles<'a>,
pub styles: Vec<Style<'a>>,
}
Expand description
Styles of the document
Styles are predefined sets of properties which can be applied to text.
use docx::styles::*;
let style = Styles::new()
.default(DefaultStyle::default())
.push(Style::new(StyleType::Paragraph, "style_id"));
Fields
default: DefaultStyle<'a>
Specifies the default set of properties.
latent_styles: LatentStyles<'a>
styles: Vec<Style<'a>>
Specifies a set of properties.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Styles<'a>
impl<'a> Send for Styles<'a>
impl<'a> Sync for Styles<'a>
impl<'a> Unpin for Styles<'a>
impl<'a> UnwindSafe for Styles<'a>
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