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 component_destroyed(&self, component: ItemTreeRef<'_>)
pub fn clear_all(&self)
Sourcepub fn begin_frame(&self)
pub fn begin_frame(&self)
Marks the beginning of a frame; called once per rendered frame.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TextLayoutCache
impl !RefUnwindSafe for TextLayoutCache
impl !Send for TextLayoutCache
impl !Sync for TextLayoutCache
impl !UnwindSafe for TextLayoutCache
impl Unpin for TextLayoutCache
impl UnsafeUnpin 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