pub struct FontVariantSpec {
pub weight: FontWeight,
pub style: FontStyle,
}
Fields§
§weight: FontWeight
§style: FontStyle
Implementations§
Source§impl FontVariantSpec
impl FontVariantSpec
pub fn is_covered_by(&self, other: &FontVariantSpec) -> bool
Trait Implementations§
Source§impl Clone for FontVariantSpec
impl Clone for FontVariantSpec
Source§fn clone(&self) -> FontVariantSpec
fn clone(&self) -> FontVariantSpec
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 FontVariantSpec
impl Debug for FontVariantSpec
Source§impl Hash for FontVariantSpec
impl Hash for FontVariantSpec
Source§impl PartialEq for FontVariantSpec
impl PartialEq for FontVariantSpec
impl Copy for FontVariantSpec
impl Eq for FontVariantSpec
impl StructuralPartialEq for FontVariantSpec
Auto Trait Implementations§
impl Freeze for FontVariantSpec
impl RefUnwindSafe for FontVariantSpec
impl Send for FontVariantSpec
impl Sync for FontVariantSpec
impl Unpin for FontVariantSpec
impl UnwindSafe for FontVariantSpec
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> 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.