pub struct TextEditApplied {
pub entity: Entity,
pub version: u64,
pub kind: AppliedKind,
pub before_byte: usize,
pub after_byte: usize,
}Expand description
Emitted by [lumen_text_edit::text_apply_edits] after every successful
mutation. Replaces ad-hoc Changed<TextContent> snooping so signal
binding / validators / undo coalescing react only to real edits.
Fields§
§entity: EntityMutated editable.
version: u64Buffer version after the edit.
kind: AppliedKindWhat kind of edit.
before_byte: usizeCursor byte position before the edit (for undo).
after_byte: usizeCursor byte position after the edit.
Trait Implementations§
Source§impl Clone for TextEditApplied
impl Clone for TextEditApplied
Source§fn clone(&self) -> TextEditApplied
fn clone(&self) -> TextEditApplied
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextEditApplied
impl Debug for TextEditApplied
impl Message for TextEditApplied
Auto Trait Implementations§
impl Freeze for TextEditApplied
impl RefUnwindSafe for TextEditApplied
impl Send for TextEditApplied
impl Sync for TextEditApplied
impl Unpin for TextEditApplied
impl UnsafeUnpin for TextEditApplied
impl UnwindSafe for TextEditApplied
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.