[][src]Struct alacritty_terminal::selection::SelectionRange

pub struct SelectionRange<L = usize> {
    pub start: Point<L>,
    pub end: Point<L>,
    pub is_block: bool,
}

Represents a range of selected cells.

Fields

start: Point<L>

Start point, top left of the selection.

end: Point<L>

End point, bottom right of the selection.

is_block: bool

Whether this selection is a block selection.

Implementations

impl<L> SelectionRange<L>[src]

pub fn new(start: Point<L>, end: Point<L>, is_block: bool) -> Self[src]

pub fn contains(&self, col: Column, line: L) -> bool where
    L: PartialEq + PartialOrd
[src]

Trait Implementations

impl<L: Clone> Clone for SelectionRange<L>[src]

impl<L: Copy> Copy for SelectionRange<L>[src]

impl<L: Debug> Debug for SelectionRange<L>[src]

impl<L: Eq> Eq for SelectionRange<L>[src]

impl<L: PartialEq> PartialEq<SelectionRange<L>> for SelectionRange<L>[src]

impl<L> StructuralEq for SelectionRange<L>[src]

impl<L> StructuralPartialEq for SelectionRange<L>[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for SelectionRange<L> where
    L: RefUnwindSafe

impl<L> Send for SelectionRange<L> where
    L: Send

impl<L> Sync for SelectionRange<L> where
    L: Sync

impl<L> Unpin for SelectionRange<L> where
    L: Unpin

impl<L> UnwindSafe for SelectionRange<L> where
    L: UnwindSafe

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.