#[repr(C)]pub struct ShapePoint {
pub x: f32,
pub y: f32,
}Expand description
A 2D point for shape coordinates (using f32 for precision)
Fields§
§x: f32§y: f32Implementations§
Trait Implementations§
Source§impl Clone for ShapePoint
impl Clone for ShapePoint
Source§fn clone(&self) -> ShapePoint
fn clone(&self) -> ShapePoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShapePoint
impl Debug for ShapePoint
Source§impl FromIterator<ShapePoint> for ShapePointVec
impl FromIterator<ShapePoint> for ShapePointVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ShapePoint>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ShapePoint>,
Creates a value from an iterator. Read more
Source§impl Hash for ShapePoint
impl Hash for ShapePoint
Source§impl Ord for ShapePoint
impl Ord for ShapePoint
Source§impl PartialEq for ShapePoint
impl PartialEq for ShapePoint
Source§impl PartialOrd for ShapePoint
impl PartialOrd for ShapePoint
impl Copy for ShapePoint
impl Eq for ShapePoint
impl StructuralPartialEq for ShapePoint
Auto Trait Implementations§
impl Freeze for ShapePoint
impl RefUnwindSafe for ShapePoint
impl Send for ShapePoint
impl Sync for ShapePoint
impl Unpin for ShapePoint
impl UnwindSafe for ShapePoint
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