Struct piet::FontWeight [−][src]
pub struct FontWeight(_);
Expand description
A font weight, represented as a value in the range 1..=1000.
This is based on the CSS font-weight
property. In general, you should
prefer the constants defined on this type, such as FontWeight::REGULAR
or
FontWeight::BOLD
.
Implementations
100
100
200
300
400
400
500
600
700
800
900
900
950
Create a new FontWeight
with a custom value.
Values will be clamped to the range 1..=1000.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FontWeight
impl Send for FontWeight
impl Sync for FontWeight
impl Unpin for FontWeight
impl UnwindSafe for FontWeight
Blanket Implementations
Mutably borrows from an owned value. Read more