DocumentChangedEventArgs
struct · ferroui-controls · v0.5.0
struct DocumentChangedEventArgs
One committed, coalesced document update. range addresses the old version;
the replacement's length is measured in UTF-16 code units.
Members
revision
revision: u64
range
range: std::ops::Range<usize>
removed_length
removed_length: usize
inserted_length
inserted_length: usize
old_length
old_length: usize
new_length
new_length: usize
kind
kind: DocumentChangeKind
changes
changes: Vec<DocumentTextChange>
Sequential replacements inside an edit batch, retaining interior anchors.
map_position
fn map_position(self: &Self, position: TextPosition) -> TextPosition
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneDebugStructuralPartialEqPartialEqEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.