Struct endbasic_std::console::PixelsXY
source · 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
.source§impl PartialEq for PixelsXY
impl PartialEq for PixelsXY
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)