Struct planar::PosY
[−]
[src]
pub struct PosY<T, Unit>(_, _);
Methods
impl<T, Unit> PosY<T, Unit>
[src]
Creates a new $s with a specified value and unit
impl<T, Unit> PosY<T, Unit>
[src]
Returns the scalar value without a unit, consuming the $s
fn into_inner(self) -> T
[src]
impl<T: Clone, Unit> PosY<T, Unit>
[src]
Returns the scalar value without a unit
Trait Implementations
impl<T: Copy, Unit> Copy for PosY<T, Unit>
[src]
impl<T: Clone, Unit> Clone for PosY<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, W, Unit> Mul<V> for PosY<T, Unit>
[src]
type Output = PosY<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, W, Unit> Div<V> for PosY<T, Unit>
[src]
type Output = PosY<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, Unit> MulAssign<V> for PosY<T, Unit>
[src]
fn mul_assign(&mut self, scale: V)
[src]
Performs the *=
operation.
impl<T: DivAssign<V>, V, Unit> DivAssign<V> for PosY<T, Unit>
[src]
fn div_assign(&mut self, scale: V)
[src]
Performs the /=
operation.
impl<T: Neg<Output = W>, W, Unit> Neg for PosY<T, Unit>
[src]
type Output = PosY<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 PosY<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: PartialOrd, Unit> PartialOrd for PosY<T, Unit>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Eq, Unit> Eq for PosY<T, Unit>
[src]
impl<T: Ord, Unit> Ord for PosY<T, Unit>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl<T: Debug, Unit> Debug for PosY<T, Unit>
[src]
impl<T: Add<V, Output = W>, V, W, Unit> Add<Height<V, Unit>> for PosY<T, Unit>
[src]
type Output = PosY<W, Unit>
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 PosY<T, Unit>
[src]
fn add_assign(&mut self, other: Height<V, Unit>)
[src]
Performs the +=
operation.
impl<T: Sub<V, Output = W>, V, W, Unit> Sub<Height<V, Unit>> for PosY<T, Unit>
[src]
type Output = PosY<W, Unit>
The resulting type after applying the -
operator.
fn sub(self, other: Height<V, Unit>) -> Self::Output
[src]
Performs the -
operation.
impl<T: Sub<V, Output = W>, V, W, Unit> Sub<PosY<V, Unit>> for PosY<T, Unit>
[src]
type Output = Height<W, Unit>
The resulting type after applying the -
operator.
fn sub(self, other: PosY<V, Unit>) -> Self::Output
[src]
Performs the -
operation.
impl<T: SubAssign<V>, V, Unit> SubAssign<Height<V, Unit>> for PosY<T, Unit>
[src]
fn sub_assign(&mut self, other: Height<V, Unit>)
[src]
Performs the -=
operation.