FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BidiReorderer

    struct · ferroui-base · v0.5.0

    struct BidiReorderer
    

    Reorders text runs according to their bidi level.

    To avoid allocations, the scratch buffers of this type are kept per thread and reused.

    View source

    Members

    bidi_reorder

    fn bidi_reorder(text_runs: &mut [Rc<dyn TextRun>], flow_direction: FlowDirection, first_text_source_index: i32) -> Rc<[IndexedTextRun]>
    

    Reorders text_runs into visual order using the reorderer of the current thread and returns the logical run table.

    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.