FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextRange

    struct · ferroui-controls · v0.5.0

    struct TextRange
    

    A directional range. start and end may be reversed; the normalized range is half-open and does not split a UTF-16 surrogate pair after validation.

    View source

    Members

    start

    start: TextPosition
    

    Source

    end

    end: TextPosition
    

    Source

    new

    const fn new(start: TextPosition, end: TextPosition) -> Self
    

    Source

    range

    fn range(self: &Self) -> Range<usize>
    

    Source

    is_empty

    fn is_empty(self: &Self) -> bool
    

    Source

    length

    fn length(self: &Self) -> usize
    

    Source

    map

    fn map(self: &Self, change: &DocumentChangedEventArgs) -> Self
    

    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
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

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