pub struct PixelsXY {
pub x: i16,
pub y: i16,
}
Expand description
Represents a coordinate for pixel-based console operations.
Coordinates can be off-screen, which means they can be negative and/or can exceed the bottom-right margin.
Fields§
§x: i16
The column number.
y: i16
The row number.
Implementations§
Trait Implementations§
Source§impl ClampedMul<SizeInPixels, PixelsXY> for CharsXY
impl ClampedMul<SizeInPixels, PixelsXY> for CharsXY
Source§fn clamped_mul(self, rhs: SizeInPixels) -> PixelsXY
fn clamped_mul(self, rhs: SizeInPixels) -> PixelsXY
Multiplies self by
rhs
and clamps the result to fit in O
.impl Copy for PixelsXY
impl Eq for PixelsXY
impl StructuralPartialEq for PixelsXY
Auto Trait Implementations§
impl Freeze for PixelsXY
impl RefUnwindSafe for PixelsXY
impl Send for PixelsXY
impl Sync for PixelsXY
impl Unpin for PixelsXY
impl UnwindSafe for PixelsXY
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