[][src]Struct alacritty_terminal::index::Point

pub struct Point<L = Line> {
    pub line: L,
    pub col: Column,
}

Index in the grid using row, column notation.

Fields

line: Lcol: Column

Implementations

impl<L> Point<L>[src]

pub fn new(line: L, col: Column) -> Point<L>[src]

#[must_use = "this returns the result of the operation, without modifying the original"]pub fn sub(self, num_cols: Column, rhs: usize) -> Point<L> where
    L: Copy + Default + Into<Line> + Add<usize, Output = L> + Sub<usize, Output = L>, 
[src]

#[must_use = "this returns the result of the operation, without modifying the original"]pub fn add(self, num_cols: Column, rhs: usize) -> Point<L> where
    L: Copy + Default + Into<Line> + Add<usize, Output = L> + Sub<usize, Output = L>, 
[src]

impl Point<usize>[src]

#[must_use = "this returns the result of the operation, without modifying the original"]pub fn sub_absolute<D>(
    self,
    dimensions: &D,
    boundary: Boundary,
    rhs: usize
) -> Point<usize> where
    D: Dimensions
[src]

#[must_use = "this returns the result of the operation, without modifying the original"]pub fn add_absolute<D>(
    self,
    dimensions: &D,
    boundary: Boundary,
    rhs: usize
) -> Point<usize> where
    D: Dimensions
[src]

Trait Implementations

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

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

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

impl<L: Default> Default for Point<L>[src]

impl<'de, L> Deserialize<'de> for Point<L> where
    L: Deserialize<'de>, 
[src]

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

impl From<Point<Line>> for Point<usize>[src]

impl From<Point<isize>> for Point<usize>[src]

impl From<Point<usize>> for Point<isize>[src]

impl From<Point<usize>> for Point<Line>[src]

impl From<RenderableCell> for Point<Line>[src]

impl<'point, T> Index<&'point Point<Line>> for Grid<T>[src]

type Output = T

The returned type after indexing.

impl<T> Index<Point<usize>> for Grid<T>[src]

type Output = T

The returned type after indexing.

impl<'point, T> IndexMut<&'point Point<Line>> for Grid<T>[src]

impl<T> IndexMut<Point<usize>> for Grid<T>[src]

impl Ord for Point[src]

impl Ord for Point<usize>[src]

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

impl PartialOrd<Point<Line>> for Point[src]

impl PartialOrd<Point<usize>> for Point<usize>[src]

impl<L> Serialize for Point<L> where
    L: Serialize
[src]

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

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

Auto Trait Implementations

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

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

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

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

impl<L> UnwindSafe for Point<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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.