Struct planar::Point
[−]
[src]
pub struct Point<T, Unit> { pub x: PosX<T, Unit>, pub y: PosY<T, Unit>, }
Fields
x: PosX<T, Unit>
y: PosY<T, Unit>
Trait Implementations
impl<T: Copy, Unit> Copy for Point<T, Unit>
[src]
impl<T: Clone, Unit> Clone for Point<T, Unit>
[src]
fn clone(&self) -> Self
[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: Mul<V, Output = W>, V: Clone, W, Unit> Mul<V> for Point<T, Unit>
[src]
type Output = Point<W, Unit>
The resulting type after applying the *
operator.
fn mul(self, scale: V) -> Self::Output
[src]
Performs the *
operation.
impl<T: Div<V, Output = W>, V: Clone, W, Unit> Div<V> for Point<T, Unit>
[src]
type Output = Point<W, Unit>
The resulting type after applying the /
operator.
fn div(self, scale: V) -> Self::Output
[src]
Performs the /
operation.
impl<T: MulAssign<V>, V: Clone, Unit> MulAssign<V> for Point<T, Unit>
[src]
fn mul_assign(&mut self, scale: V)
[src]
Performs the *=
operation.
impl<T: DivAssign<V>, V: Clone, Unit> DivAssign<V> for Point<T, Unit>
[src]
fn div_assign(&mut self, scale: V)
[src]
Performs the /=
operation.
impl<T: Neg<Output = W>, W, Unit> Neg for Point<T, Unit>
[src]
type Output = Point<W, Unit>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
Performs the unary -
operation.
impl<T: PartialEq, Unit> PartialEq for Point<T, Unit>
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: Eq, Unit> Eq for Point<T, Unit>
[src]
impl<T: Debug, Unit> Debug for Point<T, Unit>
[src]
impl<T: Add<V, Output = T>, V, Unit> Add<Width<V, Unit>> for Point<T, Unit>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Width<V, Unit>) -> Self::Output
[src]
Performs the +
operation.
impl<T: AddAssign<V>, V, Unit> AddAssign<Width<V, Unit>> for Point<T, Unit>
[src]
fn add_assign(&mut self, other: Width<V, Unit>)
[src]
Performs the +=
operation.
impl<T: Add<V, Output = T>, V, Unit> Add<Height<V, Unit>> for Point<T, Unit>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Height<V, Unit>) -> Self::Output
[src]
Performs the +
operation.
impl<T: AddAssign<V>, V, Unit> AddAssign<Height<V, Unit>> for Point<T, Unit>
[src]
fn add_assign(&mut self, other: Height<V, Unit>)
[src]
Performs the +=
operation.
impl<T: Sub<V, Output = T>, V, Unit> Sub<Width<V, Unit>> for Point<T, Unit>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Width<V, Unit>) -> Self::Output
[src]
Performs the -
operation.
impl<T: SubAssign<V>, V, Unit> SubAssign<Width<V, Unit>> for Point<T, Unit>
[src]
fn sub_assign(&mut self, other: Width<V, Unit>)
[src]
Performs the -=
operation.
impl<T: Sub<V, Output = T>, V, Unit> Sub<Height<V, Unit>> for Point<T, Unit>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Height<V, Unit>) -> Self::Output
[src]
Performs the -
operation.
impl<T: SubAssign<V>, V, Unit> SubAssign<Height<V, Unit>> for Point<T, Unit>
[src]
fn sub_assign(&mut self, other: Height<V, Unit>)
[src]
Performs the -=
operation.
impl<T: Add<V, Output = W>, V, W, Unit> Add<Size<V, Unit>> for Point<T, Unit>
[src]
type Output = Point<W, Unit>
The resulting type after applying the +
operator.
fn add(self, other: Size<V, Unit>) -> Self::Output
[src]
Performs the +
operation.
impl<T: AddAssign<V>, V, Unit> AddAssign<Size<V, Unit>> for Point<T, Unit>
[src]
fn add_assign(&mut self, other: Size<V, Unit>)
[src]
Performs the +=
operation.
impl<T: Sub<V, Output = W>, V, W, Unit> Sub<Size<V, Unit>> for Point<T, Unit>
[src]
type Output = Point<W, Unit>
The resulting type after applying the -
operator.
fn sub(self, other: Size<V, Unit>) -> Self::Output
[src]
Performs the -
operation.
impl<T: Sub<V, Output = W>, V, W, Unit> Sub<Point<V, Unit>> for Point<T, Unit>
[src]
type Output = Size<W, Unit>
The resulting type after applying the -
operator.
fn sub(self, other: Point<V, Unit>) -> Self::Output
[src]
Performs the -
operation.
impl<T: SubAssign<V>, V, Unit> SubAssign<Size<V, Unit>> for Point<T, Unit>
[src]
fn sub_assign(&mut self, other: Size<V, Unit>)
[src]
Performs the -=
operation.