pub struct FormattingObjectPool {
pub text_run_lists: ListPool<Rc<dyn TextRun>>,
pub unshaped_text_run_lists: ListPool<Rc<UnshapedTextRun>>,
pub text_lines: ListPool<Rc<dyn TextLine>>,
}Expand description
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.
Fields§
§text_run_lists: ListPool<Rc<dyn TextRun>>§unshaped_text_run_lists: ListPool<Rc<UnshapedTextRun>>§text_lines: ListPool<Rc<dyn TextLine>>Implementations§
Source§impl FormattingObjectPool
impl FormattingObjectPool
Sourcepub fn instance() -> &'static FormattingObjectPool
pub fn instance() -> &'static FormattingObjectPool
The pool of the current thread.
Sourcepub fn verify_all_returned(&self)
pub fn verify_all_returned(&self)
Checks (in debug builds) that every rented list was returned.
Auto Trait Implementations§
impl !Freeze for FormattingObjectPool
impl !RefUnwindSafe for FormattingObjectPool
impl !Send for FormattingObjectPool
impl !Sync for FormattingObjectPool
impl !UnwindSafe for FormattingObjectPool
impl Unpin for FormattingObjectPool
impl UnsafeUnpin for FormattingObjectPool
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more