#[non_exhaustive]pub enum Event {
Show 21 variants
Editor(Action),
HighlightSweep,
OpenFind,
OpenReplace,
CloseFind,
FindQuery(String),
ToggleCase,
ToggleWholeWord,
ToggleRegex,
ToggleFindInSelection,
FindNext,
FindPrev,
FindSelectAll,
ToggleReplace,
ReplaceText(String),
ReplaceOne,
ReplaceAll,
TogglePreserveCase,
CycleFocus {
back: bool,
},
PointerDown,
Focused {
replace: bool,
on: bool,
},
}Expand description
The opaque message a CodeEditor emits and consumes. The host never
matches on it — it only maps it through the three wires
(self.editor.update(e).map(Message::Editor) and the same for view /
subscription). It is deliberately opaque: the internal set churns with
every refactor, so host-relevant signals come through the curated read
accessors and builder callbacks instead. A host that genuinely needs the raw
semantic vocabulary drops to the Editor power tier, where
Action is the stable, match-on-me enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Editor(Action)
A semantic action published by the underlying widget.
HighlightSweep
One frame tick of the highlight sweep — the internal pump that drives
tokenization to convergence (and fixes cold load). Emitted by
subscription only while a dirty highlight
frontier remains, so an idle document does zero per-frame work.
OpenFind
Open the find bar (Ctrl+F), seeding the query from a single-line selection.
OpenReplace
Open the find bar with the replace row expanded (Ctrl+H).
CloseFind
Close the find bar (Escape), returning focus to the editor.
FindQuery(String)
The query text changed.
ToggleCase
Toggle the case-sensitive (Aa) option.
ToggleWholeWord
Toggle the whole-word (ab|) option.
ToggleRegex
Toggle the regex (.*) option.
ToggleFindInSelection
Toggle find-in-selection: capture the current selection as the scope.
FindNext
Advance to the next match.
FindPrev
Step to the previous match.
FindSelectAll
Turn every match into a caret (Alt+Enter).
ToggleReplace
Toggle the replace row (the chevron).
ReplaceText(String)
The replacement text changed.
ReplaceOne
Replace the active match and advance.
ReplaceAll
Replace every match in one undo step.
TogglePreserveCase
Toggle the preserve-case (AB) replace option.
CycleFocus
Tab / Shift+Tab moved focus between the bar’s inputs and the editor.
PointerDown
A left button press landed somewhere — re-assert single focus.
Focused
A bar input gained or lost native focus; mirror it into the ring flags.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Application.