pub struct Point<P> {
pub x: P,
pub y: P,
}Expand description
A simple two-dimensional coordinate
Fields§
§x: PHorizontal offset
y: PVertical offset
Trait Implementations§
impl<P: Copy> Copy for Point<P>
Auto Trait Implementations§
impl<P> Freeze for Point<P>where
P: Freeze,
impl<P> RefUnwindSafe for Point<P>where
P: RefUnwindSafe,
impl<P> Send for Point<P>where
P: Send,
impl<P> Sync for Point<P>where
P: Sync,
impl<P> Unpin for Point<P>where
P: Unpin,
impl<P> UnwindSafe for Point<P>where
P: UnwindSafe,
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