pub struct TextLayoutCache { /* private fields */ }Available on crate feature
shared-parley only.Expand description
Cache for shaped text paragraphs (before line breaking), keyed by ItemRc.
Implementations§
Source§impl TextLayoutCache
impl TextLayoutCache
pub fn clear_cache_if_scale_factor_changed(&self, window: &Window)
pub fn component_destroyed(&self, component: ItemTreeRef<'_>)
pub fn clear_all(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TextLayoutCache
impl !RefUnwindSafe for TextLayoutCache
impl !Send for TextLayoutCache
impl !Sync for TextLayoutCache
impl Unpin for TextLayoutCache
impl UnsafeUnpin for TextLayoutCache
impl !UnwindSafe for TextLayoutCache
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