pub enum MarkJump {
SameBuffer,
CrossBuffer {
buffer_id: u64,
row: usize,
col: usize,
},
Unset,
}Expand description
Return value from the engine’s try_goto_mark_* methods. Tells the
caller (app layer) whether a cross-buffer switch is required.
SameBuffer— cursor moved (or mark was unset → no-op) within the same buffer; no buffer switch needed.CrossBuffer— the mark lives in a different buffer. The app must switch to the slot whosebuffer_idmatches, then position the cursor at(row, col)usingEditor::jump_cursor.Unset— mark not set; no action needed.
Variants§
Trait Implementations§
impl Eq for MarkJump
impl StructuralPartialEq for MarkJump
Auto Trait Implementations§
impl Freeze for MarkJump
impl RefUnwindSafe for MarkJump
impl Send for MarkJump
impl Sync for MarkJump
impl Unpin for MarkJump
impl UnsafeUnpin for MarkJump
impl UnwindSafe for MarkJump
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