pub enum DefinedFontWeight {
Fixed(u32),
Variable,
}
Variants§
Implementations§
Source§impl DefinedFontWeight
impl DefinedFontWeight
pub const REGULAR: Self
pub fn is_covered_by(&self, other: &DefinedFontWeight) -> bool
pub fn is_fixed(&self) -> bool
Trait Implementations§
Source§impl Clone for DefinedFontWeight
impl Clone for DefinedFontWeight
Source§fn clone(&self) -> DefinedFontWeight
fn clone(&self) -> DefinedFontWeight
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DefinedFontWeight
impl Debug for DefinedFontWeight
Source§impl Display for DefinedFontWeight
impl Display for DefinedFontWeight
Source§impl Hash for DefinedFontWeight
impl Hash for DefinedFontWeight
Source§impl Ord for DefinedFontWeight
impl Ord for DefinedFontWeight
Source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Ord
implementation for DefinedFontWeight
.
The implementation defines the ordering as follows (from least to greatest):
- Variable
- Regular weight (400)
- Int comparison
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DefinedFontWeight
impl PartialEq for DefinedFontWeight
Source§impl PartialOrd for DefinedFontWeight
impl PartialOrd for DefinedFontWeight
impl Copy for DefinedFontWeight
impl Eq for DefinedFontWeight
impl StructuralPartialEq for DefinedFontWeight
Auto Trait Implementations§
impl Freeze for DefinedFontWeight
impl RefUnwindSafe for DefinedFontWeight
impl Send for DefinedFontWeight
impl Sync for DefinedFontWeight
impl Unpin for DefinedFontWeight
impl UnwindSafe for DefinedFontWeight
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.