pub enum ControllerOp {
ReplaceRange(usize, usize, String),
InsertAtCursor(String),
SetSelection(Selection),
SelectAll,
Undo,
Redo,
}Expand description
One pending operation enqueued by an EditController call — drained
and applied by the engine each frame.
Variants§
ReplaceRange(usize, usize, String)
InsertAtCursor(String)
SetSelection(Selection)
SelectAll
Undo
Redo
Trait Implementations§
Source§impl Clone for ControllerOp
impl Clone for ControllerOp
Source§fn clone(&self) -> ControllerOp
fn clone(&self) -> ControllerOp
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 ControllerOp
impl RefUnwindSafe for ControllerOp
impl Send for ControllerOp
impl Sync for ControllerOp
impl Unpin for ControllerOp
impl UnsafeUnpin for ControllerOp
impl UnwindSafe for ControllerOp
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