Struct crossterm_winapi::Coord
source · pub struct Coord {
pub x: i16,
pub y: i16,
}
Expand description
This is type represents the position of something on a certain ‘x’ and ‘y’.
Fields§
§x: i16
the position on the x axis
y: i16
the position on the y axis
Implementations§
Trait Implementations§
source§impl PartialEq<Coord> for Coord
impl PartialEq<Coord> for Coord
source§impl PartialOrd<Coord> for Coord
impl PartialOrd<Coord> for Coord
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Coord
impl Eq for Coord
impl StructuralEq for Coord
impl StructuralPartialEq for Coord
Auto Trait Implementations§
impl RefUnwindSafe for Coord
impl Send for Coord
impl Sync for Coord
impl Unpin for Coord
impl UnwindSafe for Coord
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