pub struct FontDescriptor { /* private fields */ }Implementations§
Source§impl FontDescriptor
impl FontDescriptor
pub fn new(family: impl Into<String>) -> Self
pub fn family(&self) -> &str
pub const fn font_style(&self) -> FontStyle
pub const fn font_weight(&self) -> FontWeight
pub fn with_style(self, font_style: FontStyle) -> Self
pub fn with_weight(self, font_weight: FontWeight) -> Self
Trait Implementations§
Source§impl Clone for FontDescriptor
impl Clone for FontDescriptor
Source§fn clone(&self) -> FontDescriptor
fn clone(&self) -> FontDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontDescriptor
impl Debug for FontDescriptor
Source§impl Hash for FontDescriptor
impl Hash for FontDescriptor
Source§impl PartialEq for FontDescriptor
impl PartialEq for FontDescriptor
Source§fn eq(&self, other: &FontDescriptor) -> bool
fn eq(&self, other: &FontDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FontDescriptor
impl StructuralPartialEq for FontDescriptor
Auto Trait Implementations§
impl Freeze for FontDescriptor
impl RefUnwindSafe for FontDescriptor
impl Send for FontDescriptor
impl Sync for FontDescriptor
impl Unpin for FontDescriptor
impl UnsafeUnpin for FontDescriptor
impl UnwindSafe for FontDescriptor
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