Struct fltk::draw::Coordinates
source · pub struct Coordinates<T: Copy> {
pub x: T,
pub y: T,
}
Expand description
Defines a pair of x, y
coordinates
Fields§
§x: T
Horizontal X coordinate
y: T
Vertical Y coordinate
Implementations§
Trait Implementations§
source§impl<T: Clone + Copy> Clone for Coordinates<T>
impl<T: Clone + Copy> Clone for Coordinates<T>
source§fn clone(&self) -> Coordinates<T>
fn clone(&self) -> Coordinates<T>
Returns a copy 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<T: Copy> From<Coordinates<T>> for [T; 2]
impl<T: Copy> From<Coordinates<T>> for [T; 2]
source§fn from(c: Coordinates<T>) -> Self
fn from(c: Coordinates<T>) -> Self
Converts to this type from the input type.
source§impl<T: Copy> From<Coordinates<T>> for (T, T)
impl<T: Copy> From<Coordinates<T>> for (T, T)
source§fn from(c: Coordinates<T>) -> Self
fn from(c: Coordinates<T>) -> Self
Converts to this type from the input type.
source§impl<T: Ord + Copy> Ord for Coordinates<T>
impl<T: Ord + Copy> Ord for Coordinates<T>
source§fn cmp(&self, other: &Coordinates<T>) -> Ordering
fn cmp(&self, other: &Coordinates<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq + Copy> PartialEq for Coordinates<T>
impl<T: PartialEq + Copy> PartialEq for Coordinates<T>
source§fn eq(&self, other: &Coordinates<T>) -> bool
fn eq(&self, other: &Coordinates<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd + Copy> PartialOrd for Coordinates<T>
impl<T: PartialOrd + Copy> PartialOrd for Coordinates<T>
source§fn partial_cmp(&self, other: &Coordinates<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Coordinates<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy + Copy> Copy for Coordinates<T>
impl<T: Eq + Copy> Eq for Coordinates<T>
impl<T: Copy> StructuralEq for Coordinates<T>
impl<T: Copy> StructuralPartialEq for Coordinates<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Coordinates<T>where
T: RefUnwindSafe,
impl<T> Send for Coordinates<T>where
T: Send,
impl<T> Sync for Coordinates<T>where
T: Sync,
impl<T> Unpin for Coordinates<T>where
T: Unpin,
impl<T> UnwindSafe for Coordinates<T>where
T: UnwindSafe,
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