pub struct Cursor {
pub ccursor: CCursor,
pub rcursor: RCursor,
pub pcursor: PCursor,
}
Expand description
All different types of cursors together.
They all point to the same place, but in their own different ways.
pcursor/rcursor can also point to after the end of the paragraph/row.
Does not implement PartialEq
because you must think which cursor should be equivalent.
The default cursor is the zero-cursor, to the first character.
Fields§
§ccursor: CCursor
§rcursor: RCursor
§pcursor: PCursor
Trait Implementations§
source§impl PartialEq for Cursor
impl PartialEq for Cursor
impl Copy for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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