[−][src]Struct alacritty_terminal::index::Point
Index in the grid using row, column notation.
Fields
line: L
col: 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]
L: Copy + Default + Into<Line> + Add<usize, Output = L> + Sub<usize, Output = L>,
#[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]
L: Copy + Default + Into<Line> + Add<usize, Output = L> + Sub<usize, Output = L>,
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]
self,
dimensions: &D,
boundary: Boundary,
rhs: usize
) -> Point<usize> where
D: Dimensions,
#[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]
self,
dimensions: &D,
boundary: Boundary,
rhs: usize
) -> Point<usize> where
D: Dimensions,
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]
L: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
fn from(cell: RenderableCell) -> Self
[src]
impl<'point, T> Index<&'point Point<Line>> for Grid<T>
[src]
type Output = T
The returned type after indexing.
fn index<'a>(&'a self, point: &Point) -> &'a T
[src]
impl<T> Index<Point<usize>> for Grid<T>
[src]
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]
fn cmp(&self, other: &Point) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl Ord for Point<usize>
[src]
fn cmp(&self, other: &Point<usize>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<L: PartialEq> PartialEq<Point<L>> for Point<L>
[src]
impl PartialOrd<Point<Line>> for Point
[src]
fn partial_cmp(&self, other: &Point) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Point<usize>> for Point<usize>
[src]
fn partial_cmp(&self, other: &Point<usize>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<L> Serialize for Point<L> where
L: Serialize,
[src]
L: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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,
L: RefUnwindSafe,
impl<L> Send for Point<L> where
L: Send,
L: Send,
impl<L> Sync for Point<L> where
L: Sync,
L: Sync,
impl<L> Unpin for Point<L> where
L: Unpin,
L: Unpin,
impl<L> UnwindSafe for Point<L> where
L: UnwindSafe,
L: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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.
fn to_owned(&self) -> T
[src]
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.
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>,