pub struct Font<'a> {
pub name: Cow<'a, str>,
pub charset: Option<Charset<'a>>,
pub family: Option<Family<'a>>,
pub pitch: Option<Pitch<'a>>,
}
Expand description
Font
use docx_rust::font_table::*;
let font = Font::new("Arial")
.charset("00")
.family("swiss")
.pitch("variable");
Fields§
§name: Cow<'a, str>
§charset: Option<Charset<'a>>
§family: Option<Family<'a>>
§pitch: Option<Pitch<'a>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Font<'a>
impl<'a> RefUnwindSafe for Font<'a>
impl<'a> Send for Font<'a>
impl<'a> Sync for Font<'a>
impl<'a> Unpin for Font<'a>
impl<'a> UnwindSafe for Font<'a>
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