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.
Members
start
start: TextPosition
end
end: TextPosition
new
const fn new(start: TextPosition, end: TextPosition) -> Self
range
fn range(self: &Self) -> Range<usize>
is_empty
fn is_empty(self: &Self) -> bool
length
fn length(self: &Self) -> usize
map
fn map(self: &Self, change: &DocumentChangedEventArgs) -> Self
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedResourceKeyObjectPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.