pub struct Vector2D {
pub x: OrderedFloat<f64>,
pub y: OrderedFloat<f64>,
}Expand description
A struct that stores a 2D vector.
Fields§
§x: OrderedFloat<f64>X coordinate.
y: OrderedFloat<f64>Y coordinate.
Implementations§
Trait Implementations§
Source§impl From<Vector2D> for StructPropertyValue
impl From<Vector2D> for StructPropertyValue
impl Copy for Vector2D
impl Eq for Vector2D
impl StructuralPartialEq for Vector2D
Auto Trait Implementations§
impl Freeze for Vector2D
impl RefUnwindSafe for Vector2D
impl Send for Vector2D
impl Sync for Vector2D
impl Unpin for Vector2D
impl UnwindSafe for Vector2D
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.