Struct zc_geo::point::Point
[−]
[src]
pub struct Point<T: Float> { pub x: T, pub y: T, }
Fields
x: T
y: T
Methods
impl<T> Point<T> where
T: Float + ToPrimitive,
[src]
T: Float + ToPrimitive,
Trait Implementations
impl<T: Clone + Float> Clone for Point<T>
[src]
fn clone(&self) -> Point<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy + Float> Copy for Point<T>
[src]
impl<T: Debug + Float> Debug for Point<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq + Float> PartialEq for Point<T>
[src]
fn eq(&self, __arg_0: &Point<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Point<T>) -> bool
[src]
This method tests for !=
.
impl<T> Add for Point<T> where
T: Float + ToPrimitive,
[src]
T: Float + ToPrimitive,
type Output = Point<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Point<T>) -> Point<T>
[src]
Performs the +
operation.
impl<T> Sub for Point<T> where
T: Float + ToPrimitive,
[src]
T: Float + ToPrimitive,
type Output = Point<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Point<T>) -> Point<T>
[src]
Performs the -
operation.
impl<T> AddAssign for Point<T> where
T: Float + ToPrimitive,
[src]
T: Float + ToPrimitive,
fn add_assign(&mut self, rhs: Point<T>)
[src]
Performs the +=
operation.
impl<T> Neg for Point<T> where
T: Float + ToPrimitive,
[src]
T: Float + ToPrimitive,