pub struct CachedFont<T> { /* private fields */ }Expand description
A wrapper around a font that caches a finite number of glyph paths.
Implementations§
Source§impl<T> CachedFont<T>
impl<T> CachedFont<T>
Sourcepub fn new(font: T) -> Self
pub fn new(font: T) -> Self
Construct a new CachedFont.
Trait Implementations§
Source§impl<T: Clone> Clone for CachedFont<T>
impl<T: Clone> Clone for CachedFont<T>
Source§fn clone(&self) -> CachedFont<T>
fn clone(&self) -> CachedFont<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for CachedFont<T>
impl<T: Debug> Debug for CachedFont<T>
Auto Trait Implementations§
impl<T> Freeze for CachedFont<T>where
T: Freeze,
impl<T> RefUnwindSafe for CachedFont<T>where
T: RefUnwindSafe,
impl<T> Send for CachedFont<T>where
T: Send,
impl<T> Sync for CachedFont<T>where
T: Sync,
impl<T> Unpin for CachedFont<T>where
T: Unpin,
impl<T> UnwindSafe for CachedFont<T>where
T: UnwindSafe,
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