Struct ted::cursor::Cursor
[−]
[src]
pub struct Cursor { /* fields omitted */ }
Imagine a cursor as the primary actor through which to edit a buffer. A cursor can have multiple positions, aka multi-cursor.
Methods
impl Cursor
[src]
pub fn new<'a, I>(buf: &Buffer, positions: I) -> Self where
I: IntoIterator<Item = &'a Position>,
[src]
I: IntoIterator<Item = &'a Position>,
ⓘImportant traits for Positions<'a>pub fn positions(&self) -> Positions
[src]
ⓘImportant traits for Positions<'a>
pub fn handle_cur(&mut self, buf: &Buffer, event: CursorEvent)
[src]
Handles a mutation of the cursor, leaving the buffer unchanged.
pub fn handle_buf(&mut self, buf: &mut Buffer, event: BufferEvent)
[src]
Handles a mutation of the buffer.