FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    text_run_lists

    text_run_lists: ListPool<std::rc::Rc<dyn TextRun>>
    

    Source

    unshaped_text_run_lists

    unshaped_text_run_lists: ListPool<std::rc::Rc<crate::media::text_formatting::UnshapedTextRun>>
    

    Source

    text_lines

    text_lines: ListPool<std::rc::Rc<dyn TextLine>>
    

    Source

    instance

    fn instance() -> &'static FormattingObjectPool
    

    The pool of the current thread.

    Source

    verify_all_returned

    fn verify_all_returned(self: &Self)
    

    Checks (in debug builds) that every rented list was returned.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.