pub struct SoftwareTextFontSet { /* private fields */ }Implementations§
Source§impl SoftwareTextFontSet
impl SoftwareTextFontSet
pub fn empty() -> Self
pub fn from_font(font: SoftwareTextFont) -> Self
pub fn from_fonts_or_default(fonts: &[&[u8]]) -> Self
pub fn default_font(&self) -> Option<&SoftwareTextFont>
pub fn resolve(&self, style: &TextStyle) -> Option<&SoftwareTextFont>
Trait Implementations§
Source§impl Clone for SoftwareTextFontSet
impl Clone for SoftwareTextFontSet
Source§fn clone(&self) -> SoftwareTextFontSet
fn clone(&self) -> SoftwareTextFontSet
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 SoftwareTextFontSet
impl !RefUnwindSafe for SoftwareTextFontSet
impl Send for SoftwareTextFontSet
impl Sync for SoftwareTextFontSet
impl Unpin for SoftwareTextFontSet
impl UnsafeUnpin for SoftwareTextFontSet
impl !UnwindSafe for SoftwareTextFontSet
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