Struct comfy_wgpu::epaint::text::cursor::RCursor
pub struct RCursor {
pub row: usize,
pub column: usize,
}Expand description
Row Cursor
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§
impl Copy for RCursor
impl Eq for RCursor
impl StructuralEq for RCursor
impl StructuralPartialEq for RCursor
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.