Enum pdfium_render::font::PdfFontWeight
source · [−]pub enum PdfFontWeight {
Weight100,
Weight200,
Weight300,
Weight400Normal,
Weight500,
Weight600,
Weight700Bold,
Weight800,
Weight900,
Custom(u32),
}Expand description
The weight of a PdfFont. Typical values are 400 (normal) and 700 (bold).
Variants
Weight100
Weight200
Weight300
Weight400Normal
Weight500
Weight600
Weight700Bold
Weight800
Weight900
Custom(u32)
Any font weight value that falls outside the typical 100 - 900 value range.
Trait Implementations
sourceimpl Clone for PdfFontWeight
impl Clone for PdfFontWeight
sourcefn clone(&self) -> PdfFontWeight
fn clone(&self) -> PdfFontWeight
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 moresourceimpl Debug for PdfFontWeight
impl Debug for PdfFontWeight
sourceimpl PartialEq<PdfFontWeight> for PdfFontWeight
impl PartialEq<PdfFontWeight> for PdfFontWeight
sourcefn eq(&self, other: &PdfFontWeight) -> bool
fn eq(&self, other: &PdfFontWeight) -> bool
impl Copy for PdfFontWeight
impl StructuralPartialEq for PdfFontWeight
Auto Trait Implementations
impl RefUnwindSafe for PdfFontWeight
impl Send for PdfFontWeight
impl Sync for PdfFontWeight
impl Unpin for PdfFontWeight
impl UnwindSafe for PdfFontWeight
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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