Struct affine::Point
[−]
[src]
pub struct Point<A>(_);
Methods
impl<A: Sub<Output = A>> Point<A>
[src]
fn from_origin(a: A, o: A) -> Self
[src]
Trait Implementations
impl<A: Clone> Clone for Point<A>
[src]
fn clone(&self) -> Point<A>
[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<A: Copy> Copy for Point<A>
[src]
impl<A: Debug> Debug for Point<A>
[src]
impl<A: PartialEq> PartialEq for Point<A>
[src]
fn eq(&self, __arg_0: &Point<A>) -> 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<A>) -> bool
[src]
This method tests for !=
.
impl<A: Eq> Eq for Point<A>
[src]
impl<A: Hash> Hash for Point<A>
[src]
fn hash<__HA: Hasher>(&self, __arg_0: &mut __HA)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<A: Add<Output = A>> Add<A> for Point<A>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: A) -> Self
[src]
Performs the +
operation.
impl<A: Sub<Output = A>> Sub<A> for Point<A>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: A) -> Self
[src]
Performs the -
operation.
impl<A: AddAssign> AddAssign<A> for Point<A>
[src]
fn add_assign(&mut self, other: A)
[src]
Performs the +=
operation.
impl<A: SubAssign> SubAssign<A> for Point<A>
[src]
fn sub_assign(&mut self, other: A)
[src]
Performs the -=
operation.