pub struct PointCoordinate {
pub x: u16,
pub y: u32,
}Expand description
A coordinate in the terminal grid.
Fields§
§x: u16Column (0-indexed).
y: u32Row (0-indexed). May exceed page size for screen/history tags.
Trait Implementations§
Source§impl Clone for PointCoordinate
impl Clone for PointCoordinate
Source§fn clone(&self) -> PointCoordinate
fn clone(&self) -> PointCoordinate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PointCoordinate
Source§impl Debug for PointCoordinate
impl Debug for PointCoordinate
impl Eq for PointCoordinate
Source§impl From<PointCoordinate> for PointCoordinate
impl From<PointCoordinate> for PointCoordinate
Source§fn from(value: PointCoordinate) -> Self
fn from(value: PointCoordinate) -> Self
Converts to this type from the input type.
Source§impl From<PointCoordinate> for PointCoordinate
impl From<PointCoordinate> for PointCoordinate
Source§fn from(value: PointCoordinate) -> Self
fn from(value: PointCoordinate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PointCoordinate
impl PartialEq for PointCoordinate
Source§fn eq(&self, other: &PointCoordinate) -> bool
fn eq(&self, other: &PointCoordinate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointCoordinate
Auto Trait Implementations§
impl Freeze for PointCoordinate
impl RefUnwindSafe for PointCoordinate
impl Send for PointCoordinate
impl Sync for PointCoordinate
impl Unpin for PointCoordinate
impl UnsafeUnpin for PointCoordinate
impl UnwindSafe for PointCoordinate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more