pub struct CellLocation {
pub x: u16,
pub y: u16,
}Expand description
An (x, y) index of a specific cell on the terminal (i.e. specific location where a single character could be printed)
Fields§
§x: u16The x-index
y: u16The y-index
Trait Implementations§
Source§impl Clone for CellLocation
impl Clone for CellLocation
Source§fn clone(&self) -> CellLocation
fn clone(&self) -> CellLocation
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 moreSource§impl Debug for CellLocation
impl Debug for CellLocation
Source§impl PartialEq for CellLocation
impl PartialEq for CellLocation
Source§fn eq(&self, other: &CellLocation) -> bool
fn eq(&self, other: &CellLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CellLocation
Auto Trait Implementations§
impl Freeze for CellLocation
impl RefUnwindSafe for CellLocation
impl Send for CellLocation
impl Sync for CellLocation
impl Unpin for CellLocation
impl UnsafeUnpin for CellLocation
impl UnwindSafe for CellLocation
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