pub struct Point2f {
pub x: f32,
pub y: f32,
}
Expand description
2D point with single-precision floating-point coordinates
Fields§
§x: f32
§y: f32
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Point2f
impl<'de> Deserialize<'de> for Point2f
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 Point2f
impl StructuralPartialEq for Point2f
Auto Trait Implementations§
impl Freeze for Point2f
impl RefUnwindSafe for Point2f
impl Send for Point2f
impl Sync for Point2f
impl Unpin for Point2f
impl UnwindSafe for Point2f
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