pub enum ErrorTarget {
Next,
Prev,
Jump(Option<usize>),
First,
Last,
NextFile,
PrevFile,
}Expand description
CM.2 (2026-07-22): which error entry a AppEffect::ErrorNav
should resolve to. Carried in the AppEffect so the whole
:cnext / :cprev / :cc / :cfirst / :clast / ]q / [q
family shares a single host handler (Editor::do_error_nav).
The error list is core substrate (like the jump ring), so a
host AppEffect variant is the right carrier — not a
provider-specific one.
Variants§
Next
:cnext / ]q — next entry (wraps to first past the end).
Prev
:cprev / [q — previous entry (wraps to last past the start).
Jump(Option<usize>)
:cc [N] — jump to the Nth entry (1-based). None (bare
:cc) re-visits the current entry.
First
:cfirst / [Q — jump to the first entry.
Last
:clast / ]Q — jump to the last entry.
NextFile
:cnextfile / ]qf — first entry of the next file (wraps).
PrevFile
:cprevfile / [qf — first entry of the previous file (wraps).
Trait Implementations§
Source§impl Clone for ErrorTarget
impl Clone for ErrorTarget
Source§fn clone(&self) -> ErrorTarget
fn clone(&self) -> ErrorTarget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ErrorTarget
Source§impl Debug for ErrorTarget
impl Debug for ErrorTarget
Source§impl<'de> Deserialize<'de> for ErrorTarget
impl<'de> Deserialize<'de> for ErrorTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorTarget
Source§impl PartialEq for ErrorTarget
impl PartialEq for ErrorTarget
Source§impl Serialize for ErrorTarget
impl Serialize for ErrorTarget
impl StructuralPartialEq for ErrorTarget
Auto Trait Implementations§
impl Freeze for ErrorTarget
impl RefUnwindSafe for ErrorTarget
impl Send for ErrorTarget
impl Sync for ErrorTarget
impl Unpin for ErrorTarget
impl UnsafeUnpin for ErrorTarget
impl UnwindSafe for ErrorTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.