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, for the
text-editing operations Sheet::insert and Sheet::delete.
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§fn clone(&self) -> TextCellRef
fn clone(&self) -> TextCellRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextCellRef
impl Debug for TextCellRef
Source§impl Default for TextCellRef
impl Default for TextCellRef
Source§fn default() -> TextCellRef
fn default() -> TextCellRef
Returns the “default value” for a type. Read more
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