mod impl_point;
mod impl_point_ext;
mod impl_point_repr;
pub type PointView<'a, X, Y = X> = Point<&'a X, &'a Y>;
pub type PointViewMut<'a, X, Y = X> = Point<&'a mut X, &'a mut Y>;
pub type RawPoint<X, Y = X> = Point<*const X, *const Y>;
pub type RawPointMut<X, Y = X> = Point<*mut X, *mut Y>;
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
#[repr(C)]
pub struct Point<X, Y = X> {
#[cfg_attr(feature = "serde", serde(alias = "lhs", alias = "a"))]
pub x: X,
#[cfg_attr(feature = "serde", serde(alias = "rhs", alias = "b"))]
pub y: Y,
}