pub struct TextInputSnapshot { /* private fields */ }Expand description
Snapshot of TextInput state for undo.
This captures the editable state (value, cursor, selection). It deliberately
does not include the entry-recall InputHistory: recall entries are
session state, not per-edit widget state, so undo/redo never rewinds the
recall list. A consumer that wants persistent recall stores
TextInput::history itself.
Trait Implementations§
Source§impl Clone for TextInputSnapshot
impl Clone for TextInputSnapshot
Source§fn clone(&self) -> TextInputSnapshot
fn clone(&self) -> TextInputSnapshot
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 moreAuto Trait Implementations§
impl Freeze for TextInputSnapshot
impl RefUnwindSafe for TextInputSnapshot
impl Send for TextInputSnapshot
impl Sync for TextInputSnapshot
impl Unpin for TextInputSnapshot
impl UnsafeUnpin for TextInputSnapshot
impl UnwindSafe for TextInputSnapshot
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