pub struct RCursor {
pub row: usize,
pub column: usize,
}
Expand description
Row Cursor
Fields§
§row: usize
0 is first row, and so on.
Note that a single paragraph can span multiple rows.
(a paragraph is text separated by \n
).
column: usize
Character based (NOT bytes). It is fine if this points to something beyond the end of the current row. When moving up/down it may again be within the next row.
Trait Implementations§
source§impl PartialEq for RCursor
impl PartialEq for RCursor
impl Copy for RCursor
impl Eq for RCursor
impl StructuralEq for RCursor
impl StructuralPartialEq for RCursor
Auto Trait Implementations§
impl RefUnwindSafe for RCursor
impl Send for RCursor
impl Sync for RCursor
impl Unpin for RCursor
impl UnwindSafe for RCursor
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