[][src]Struct egui::paint::RCursor

pub struct RCursor {
    pub row: usize,
    pub column: usize,
}

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

impl Clone for RCursor[src]

impl Copy for RCursor[src]

impl Debug for RCursor[src]

impl Default for RCursor[src]

impl PartialEq<RCursor> for RCursor[src]

impl StructuralPartialEq for RCursor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.