#[non_exhaustive]pub enum CodeEv {
Definition(TextPos),
Rename(TextPos),
Format,
Breakpoint(usize),
}Expand description
what the user asked of a code editor in its last pass (ui.code_events)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Definition(TextPos)
go to the definition of the word at the position (Ctrl+click, F12)
Rename(TextPos)
rename the word at the position (F2)
Format
format the document (Shift+Alt+F)
Breakpoint(usize)
a click in the breakpoints’ column of line (from 0)
Trait Implementations§
impl Copy for CodeEv
impl Eq for CodeEv
impl StructuralPartialEq for CodeEv
Auto Trait Implementations§
impl Forget for CodeEv
impl Freeze for CodeEv
impl RefUnwindSafe for CodeEv
impl Send for CodeEv
impl Sync for CodeEv
impl Unpin for CodeEv
impl UnsafeUnpin for CodeEv
impl UnwindSafe for CodeEv
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