pub struct TextCellRef {
pub row: usize,
pub col: usize,
pub char_offset: usize,
}Expand description
A caret position: a cell plus an offset within its source text
Fields§
§row: usizeRow index, 0-based
col: usizeColumn index, 0-based
char_offset: usizeOffset into the cell’s source text, in characters rather than bytes
Trait Implementations§
Source§impl Clone for TextCellRef
impl Clone for TextCellRef
Source§impl Debug for TextCellRef
impl Debug for TextCellRef
Auto Trait Implementations§
impl Freeze for TextCellRef
impl RefUnwindSafe for TextCellRef
impl Send for TextCellRef
impl Sync for TextCellRef
impl Unpin for TextCellRef
impl UnsafeUnpin for TextCellRef
impl UnwindSafe for TextCellRef
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