[−][src]Struct egui::paint::CCursor
Character cursor
Fields
index: usize
Character offset (NOT byte offset!).
prefer_next_row: bool
If this cursors sits right at the border of a wrapped row break (NOT paragraph break) do we prefer the next row? This is almost always what you want, except for when explicitly clicking the end of a row or pressing the end key.
Implementations
impl CCursor
[src]
Trait Implementations
impl Add<usize> for CCursor
[src]
type Output = CCursor
The resulting type after applying the +
operator.
pub fn add(self, rhs: usize) -> Self::Output
[src]
impl Clone for CCursor
[src]
impl Copy for CCursor
[src]
impl Debug for CCursor
[src]
impl Default for CCursor
[src]
impl PartialEq<CCursor> for CCursor
[src]
Two CCursor
s are considered equal if they refer to the same character boundary,
even if one prefers the start of the next row.
pub fn eq(&self, other: &CCursor) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Sub<usize> for CCursor
[src]
Auto Trait Implementations
impl RefUnwindSafe for CCursor
[src]
impl Send for CCursor
[src]
impl Sync for CCursor
[src]
impl Unpin for CCursor
[src]
impl UnwindSafe for CCursor
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,