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 more
sourceimpl 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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PdfFontWeight) -> bool
fn ne(&self, other: &PdfFontWeight) -> bool
This method tests for !=.
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 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