pub struct LayoutCursor {
    pub row: usize,
    pub column: usize,
}Expand description
Row/column cursor.
This refers to rows and columns in layout terms–text wrapping creates multiple rows.
Fields§
§row: usize0 is first row, and so on.
Note that a single paragraph can span multiple rows.
(a paragraph is text separated by \n).
column: usizeCharacter 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 Clone for LayoutCursor
 
impl Clone for LayoutCursor
Source§fn clone(&self) -> LayoutCursor
 
fn clone(&self) -> LayoutCursor
Returns a duplicate of the value. Read more
1.0.0 · 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 LayoutCursor
 
impl Debug for LayoutCursor
Source§impl Default for LayoutCursor
 
impl Default for LayoutCursor
Source§fn default() -> LayoutCursor
 
fn default() -> LayoutCursor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutCursor
 
impl<'de> Deserialize<'de> for LayoutCursor
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
Source§impl PartialEq for LayoutCursor
 
impl PartialEq for LayoutCursor
Source§impl Serialize for LayoutCursor
 
impl Serialize for LayoutCursor
impl Copy for LayoutCursor
impl Eq for LayoutCursor
impl StructuralPartialEq for LayoutCursor
Auto Trait Implementations§
impl Freeze for LayoutCursor
impl RefUnwindSafe for LayoutCursor
impl Send for LayoutCursor
impl Sync for LayoutCursor
impl Unpin for LayoutCursor
impl UnwindSafe for LayoutCursor
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