pub struct CharsXY {
pub x: u16,
pub y: u16,
}
Expand description
Represents a coordinate for character-based console operations.
Fields§
§x: u16
The column number, starting from zero.
y: u16
The row number, starting from zero.
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 CharsXY
impl Eq for CharsXY
impl StructuralPartialEq for CharsXY
Auto Trait Implementations§
impl Freeze for CharsXY
impl RefUnwindSafe for CharsXY
impl Send for CharsXY
impl Sync for CharsXY
impl Unpin for CharsXY
impl UnwindSafe for CharsXY
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