FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextBoxTextChange

    struct · ferroui-controls · v0.5.0

    struct TextBoxTextChange
    

    The exact replacement made by a native text-editing operation.

    Positions count UTF-16 code units in previous_text. A rich document can rebase its ranges at this location even when repeated characters would make a comparison of the old and new strings identify a different location.

    View source

    Members

    previous_text

    fn previous_text(self: &Self) -> &str
    

    Source

    replaced_range

    fn replaced_range(self: &Self) -> Range<i32>
    

    Source

    inserted_length

    fn inserted_length(self: &Self) -> i32
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq

    Availability

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