Struct guion::widgets::textbox::state::Cursor[][src]

pub struct Cursor {
    pub select: u32,
    pub caret: u32,
}

Fields

select: u32caret: u32

Implementations

impl Cursor[src]

pub fn min(&self, min: u32) -> Self[src]

pub fn range(&self) -> Range<u32>[src]

pub fn range_usize(&self) -> Range<usize>[src]

pub fn range_incl(&self) -> RangeInclusive<u32>[src]

pub fn start_len(&self) -> (u32, u32)[src]

pub fn is_selection(&self) -> bool[src]

pub fn unselect(&mut self)[src]

pub fn unselect_add(&mut self, o: u32, skip_unselect: bool)[src]

pub fn unselect_sub(&mut self, o: u32, skip_unselect: bool)[src]

pub fn unselect_addi(&mut self, o: i32, skip_unselect: bool)[src]

pub fn limit(&mut self, min: u32)[src]

pub fn del_selection<'a, S, E>(&mut self, c: &mut S) where
    S: CaptionMut<E> + 'a, 
[src]

Trait Implementations

impl Clone for Cursor[src]

impl Copy for Cursor[src]

impl Default for Cursor[src]

Auto Trait Implementations

impl RefUnwindSafe for Cursor

impl Send for Cursor

impl Sync for Cursor

impl Unpin for Cursor

impl UnwindSafe for Cursor

Blanket Implementations

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

impl<E, T> AtomState<E, T> for T where
    E: Env,
    T: Clone
[src]

impl<E, T> AtomStateMut<E, T> for T where
    E: Env,
    T: Clone
[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> FromInto<U> for T where
    T: From<U> + Into<U>, 
[src]

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

impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[src]

impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[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.