Struct docx_rust::font_table::Font
source · [−]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::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> 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
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