pub struct FontStore { /* private fields */ }Implementations§
Source§impl FontStore
impl FontStore
pub fn new(device: &Device, surface_config: &SurfaceConfiguration) -> Self
pub fn load( &mut self, device: &Device, queue: &Queue, font_file_path: &str, cache_preset: &str, ) -> Result<CacheKey, LoadingError>
pub fn atlas(&self) -> &Atlas
pub fn get(&self, font_key: CacheKey) -> Option<&Font>
Auto Trait Implementations§
impl !RefUnwindSafe for FontStore
impl !UnwindSafe for FontStore
impl Freeze for FontStore
impl Send for FontStore
impl Sync for FontStore
impl Unpin for FontStore
impl UnsafeUnpin for FontStore
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