pub struct FontRegistration { /* private fields */ }Implementations§
Source§impl FontRegistration
impl FontRegistration
pub fn new(family: impl Into<String>, source: FontSource) -> Self
pub fn family(&self) -> &str
pub const fn source(&self) -> &FontSource
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 FontRegistration
impl Clone for FontRegistration
Source§fn clone(&self) -> FontRegistration
fn clone(&self) -> FontRegistration
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 FontRegistration
impl Debug for FontRegistration
Source§impl Hash for FontRegistration
impl Hash for FontRegistration
Source§impl PartialEq for FontRegistration
impl PartialEq for FontRegistration
Source§fn eq(&self, other: &FontRegistration) -> bool
fn eq(&self, other: &FontRegistration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FontRegistration
impl StructuralPartialEq for FontRegistration
Auto Trait Implementations§
impl Freeze for FontRegistration
impl RefUnwindSafe for FontRegistration
impl Send for FontRegistration
impl Sync for FontRegistration
impl Unpin for FontRegistration
impl UnsafeUnpin for FontRegistration
impl UnwindSafe for FontRegistration
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