pub struct TextCache {
pub string_cache: FastHashMap<TextId, Words>,
}
Expand description
Cache for accessing large amounts of text
Fields§
§string_cache: FastHashMap<TextId, Words>
Mapping from the TextID to the actual, UTF-8 String
This is stored outside of the actual glyph calculation, because usually you don’t need the string, except for rebuilding a cached string (for example, when the font is changed)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextCache
impl RefUnwindSafe for TextCache
impl Send for TextCache
impl Sync for TextCache
impl Unpin for TextCache
impl UnwindSafe for TextCache
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)