[][src]Struct alacritty_terminal::grid::Cursor

pub struct Cursor {
    pub point: Point,
    pub template: Cell,
    pub charsets: Charsets,
    pub input_needs_wrap: bool,
}

Fields

point: Point

The location of this cursor.

template: Cell

Template cell when using this cursor.

charsets: Charsets

Currently configured graphic character sets.

input_needs_wrap: bool

Tracks if the next call to input will need to first handle wrapping.

This is true after the last column is set with the input function. Any function that implicitly sets the line or column needs to set this to false to avoid wrapping twice.

Tracking input_needs_wrap makes it possible to not store a cursor position that exceeds the number of columns, which would lead to index out of bounds when interacting with arrays without sanitization.

Trait Implementations

impl Clone for Cursor[src]

impl Copy for Cursor[src]

impl Debug for Cursor[src]

impl Default for Cursor[src]

impl Eq for Cursor[src]

impl PartialEq<Cursor> for Cursor[src]

impl StructuralEq for Cursor[src]

impl StructuralPartialEq 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<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.