#[repr(C)]pub struct Point2i {
pub x: i32,
pub y: i32,
}
Expand description
Mathematical point on the 2D (x, y) plane.
Fields§
§x: i32
Horizontal component
y: i32
Vertical component
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Point2i
impl<'de> Deserialize<'de> for Point2i
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Point2i
impl Eq for Point2i
impl StructuralPartialEq for Point2i
Auto Trait Implementations§
impl Freeze for Point2i
impl RefUnwindSafe for Point2i
impl Send for Point2i
impl Sync for Point2i
impl Unpin for Point2i
impl UnwindSafe for Point2i
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