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<'de> Deserialize<'de> for RCursor
impl<'de> Deserialize<'de> for RCursor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for RCursor
impl Eq for RCursor
impl StructuralPartialEq for RCursor
Auto Trait Implementations§
impl Freeze for RCursor
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