pub struct SoftwareTextFont { /* private fields */ }Implementations§
Source§impl SoftwareTextFont
impl SoftwareTextFont
pub fn from_bytes( bytes: impl Into<Vec<u8>>, ) -> Result<Self, SoftwareTextFontError>
pub fn family_names(&self) -> &[String]
pub fn weight(&self) -> FontWeight
pub fn style(&self) -> FontStyle
Trait Implementations§
Source§impl Clone for SoftwareTextFont
impl Clone for SoftwareTextFont
Source§fn clone(&self) -> SoftwareTextFont
fn clone(&self) -> SoftwareTextFont
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 moreAuto Trait Implementations§
impl Freeze for SoftwareTextFont
impl !RefUnwindSafe for SoftwareTextFont
impl Send for SoftwareTextFont
impl Sync for SoftwareTextFont
impl Unpin for SoftwareTextFont
impl UnsafeUnpin for SoftwareTextFont
impl !UnwindSafe for SoftwareTextFont
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