FormattingObjectPool
struct · ferroui-base · v0.5.0
struct FormattingObjectPool
Contains various list pools that are commonly used during text formatting.
This class provides an instance per thread.
In most applications, there'll be only one instance: on the UI thread, which is responsible for layout.
Members
text_run_lists
text_run_lists: ListPool<std::rc::Rc<dyn TextRun>>
unshaped_text_run_lists
unshaped_text_run_lists: ListPool<std::rc::Rc<crate::media::text_formatting::UnshapedTextRun>>
text_lines
text_lines: ListPool<std::rc::Rc<dyn TextLine>>
instance
fn instance() -> &'static FormattingObjectPool
The pool of the current thread.
verify_all_returned
fn verify_all_returned(self: &Self)
Checks (in debug builds) that every rented list was returned.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.