pub struct LayoutCache { /* private fields */ }Expand description
Per-engine paragraph layout cache layered over TextSystem.
Entries have no independent eviction policy; call LayoutCache::clear at
lifecycle boundaries or let the owning engine drop the cache. Stored handles
are cheap std::sync::Arc clones of prepared layouts.
§Examples
use ailloli_ui_editor::layout::LayoutCache;
let mut cache = LayoutCache::default();
cache.clear();Implementations§
Source§impl LayoutCache
Resolves and invalidates cached paragraph layouts.
impl LayoutCache
Resolves and invalidates cached paragraph layouts.
Trait Implementations§
Source§impl Clone for LayoutCache
impl Clone for LayoutCache
Source§fn clone(&self) -> LayoutCache
fn clone(&self) -> LayoutCache
Returns a copy 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 Debug for LayoutCache
impl Debug for LayoutCache
Source§impl Default for LayoutCache
impl Default for LayoutCache
Source§fn default() -> LayoutCache
fn default() -> LayoutCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutCache
impl !RefUnwindSafe for LayoutCache
impl Send for LayoutCache
impl Sync for LayoutCache
impl Unpin for LayoutCache
impl !UnwindSafe for LayoutCache
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