FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PreparedRichInline

    struct · ferroui-pretext · v0.5.0

    struct PreparedRichInline
    

    Immutable, reusable rich inline preparation. Keep this value alive while retaining any geometry-only ranges which refer to its source item indices.

    View source

    Members

    item_count

    fn item_count(self: &Self) -> usize
    

    Source

    source_item_count

    fn source_item_count(self: &Self) -> usize
    

    Source

    is_empty

    fn is_empty(self: &Self) -> bool
    

    Source

    prepared_item

    fn prepared_item(self: &Self, source_item_index: usize) -> Option<&Rc<PreparedTextWithSegments>>
    

    Obtain the prepared text for an original source item. Whitespace-only source items have no prepared text, but may contribute a collapsed gap.

    Source

    Trait implementations

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

    Availability

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