pub struct Mark {
pub position: Position,
pub buffer_id: BufferId,
}Expand description
A bookmark position with optional buffer association.
For global marks, both position and buffer_id are significant.
For buffer-local marks, only position is used (buffer is implicit).
§Example
use reovim_kernel::api::v1::*;
let mark = Mark {
position: Position::new(10, 5),
buffer_id: BufferId::new(),
};Fields§
§position: PositionPosition within the buffer.
buffer_id: BufferIdBuffer this mark belongs to (for global marks).
Implementations§
Trait Implementations§
impl Copy for Mark
impl Eq for Mark
impl StructuralPartialEq for Mark
Auto Trait Implementations§
impl Freeze for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnsafeUnpin for Mark
impl UnwindSafe for Mark
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