pub struct Point {
pub x: f32,
pub y: f32,
}Expand description
A 2D point in logical coordinates (before DPI scaling).
A single f32-based type used throughout the platform. A
physical vs logical distinction (for DPI awareness) can be
added later with a unit marker generic if needed.
Fields§
§x: f32§y: f32Implementations§
Trait Implementations§
impl Copy for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnsafeUnpin for Point
impl UnwindSafe for Point
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