[][src]Struct fpn::cg::Vector2

pub struct Vector2<T> {
    pub x: T,
    pub y: T,
}

Vector2 provides the common 2D coordinates container Common ops traits are implemented for primitive types and FPN. Vector2 is not Copy, so try use reference when getting borrow conflicts, like

use fpn::Vector2;

let v = Vector2::new(1f32, 1f32);
// let added = v + v; // this will panic
let added = &v + &v;
// or
let double = v * 2f32;

Dot product and cross product are provided with trait Dot and Cross. For cross product of Vector2, x is the true value while y holds the signum of x

For Vector2<FPN>, bitwize shift is provided too.

Fields

x: Ty: T

Implementations

impl<T> Vector2<T>[src]

pub fn new(x: T, y: T) -> Self[src]

impl<F> Vector2<FPN<I, F>> where
    F: Unsigned
[src]

pub fn with(x: i8, y: i8) -> Self[src]

pub fn set_x(&mut self, v: i8)[src]

pub fn set_y(&mut self, v: i8)[src]

impl<F> Vector2<FPN<I, F>> where
    F: Unsigned
[src]

pub fn with(x: i16, y: i16) -> Self[src]

pub fn set_x(&mut self, v: i16)[src]

pub fn set_y(&mut self, v: i16)[src]

impl<F> Vector2<FPN<I, F>> where
    F: Unsigned
[src]

pub fn with(x: i32, y: i32) -> Self[src]

pub fn set_x(&mut self, v: i32)[src]

pub fn set_y(&mut self, v: i32)[src]

impl<F> Vector2<FPN<I, F>> where
    F: Unsigned
[src]

pub fn with(x: i64, y: i64) -> Self[src]

pub fn set_x(&mut self, v: i64)[src]

pub fn set_y(&mut self, v: i64)[src]

Trait Implementations

impl<'_, F> Add<&'_ Vector2<FPN<i16, F>>> for &'_ FVector2<i16, F> where
    F: Unsigned
[src]

type Output = FVector2<i16, F>

The resulting type after applying the + operator.

impl<'_, F> Add<&'_ Vector2<FPN<i16, F>>> for FVector2<i16, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_, F> Add<&'_ Vector2<FPN<i32, F>>> for &'_ FVector2<i32, F> where
    F: Unsigned
[src]

type Output = FVector2<i32, F>

The resulting type after applying the + operator.

impl<'_, F> Add<&'_ Vector2<FPN<i32, F>>> for FVector2<i32, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_, F> Add<&'_ Vector2<FPN<i64, F>>> for &'_ FVector2<i64, F> where
    F: Unsigned
[src]

type Output = FVector2<i64, F>

The resulting type after applying the + operator.

impl<'_, F> Add<&'_ Vector2<FPN<i64, F>>> for FVector2<i64, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_, F> Add<&'_ Vector2<FPN<i8, F>>> for &'_ FVector2<i8, F> where
    F: Unsigned
[src]

type Output = FVector2<i8, F>

The resulting type after applying the + operator.

impl<'_, F> Add<&'_ Vector2<FPN<i8, F>>> for FVector2<i8, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<f32>> for &'_ Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<f32>> for Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<f64>> for &'_ Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<f64>> for Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<i16>> for &'_ Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<i16>> for Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<i32>> for &'_ Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<i32>> for Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<i64>> for &'_ Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<i64>> for Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<i8>> for &'_ Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the + operator.

impl<'_> Add<&'_ Vector2<i8>> for Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the + operator.

impl<F> Add<Vector2<FPN<i16, F>>> for FVector2<i16, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_, F> Add<Vector2<FPN<i16, F>>> for &'_ FVector2<i16, F> where
    F: Unsigned
[src]

type Output = FVector2<i16, F>

The resulting type after applying the + operator.

impl<F> Add<Vector2<FPN<i32, F>>> for FVector2<i32, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_, F> Add<Vector2<FPN<i32, F>>> for &'_ FVector2<i32, F> where
    F: Unsigned
[src]

type Output = FVector2<i32, F>

The resulting type after applying the + operator.

impl<F> Add<Vector2<FPN<i64, F>>> for FVector2<i64, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_, F> Add<Vector2<FPN<i64, F>>> for &'_ FVector2<i64, F> where
    F: Unsigned
[src]

type Output = FVector2<i64, F>

The resulting type after applying the + operator.

impl<F> Add<Vector2<FPN<i8, F>>> for FVector2<i8, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_, F> Add<Vector2<FPN<i8, F>>> for &'_ FVector2<i8, F> where
    F: Unsigned
[src]

type Output = FVector2<i8, F>

The resulting type after applying the + operator.

impl Add<Vector2<f32>> for Vector2<f32>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> Add<Vector2<f32>> for &'_ Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the + operator.

impl Add<Vector2<f64>> for Vector2<f64>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> Add<Vector2<f64>> for &'_ Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the + operator.

impl Add<Vector2<i16>> for Vector2<i16>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> Add<Vector2<i16>> for &'_ Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the + operator.

impl<F> Add<Vector2<i16>> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<Vector2<i32>> for Vector2<i32>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> Add<Vector2<i32>> for &'_ Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the + operator.

impl<F> Add<Vector2<i32>> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<Vector2<i64>> for Vector2<i64>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> Add<Vector2<i64>> for &'_ Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the + operator.

impl<F> Add<Vector2<i64>> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<Vector2<i8>> for Vector2<i8>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_> Add<Vector2<i8>> for &'_ Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the + operator.

impl<F> Add<Vector2<i8>> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'_, F> AddAssign<&'_ Vector2<FPN<i16, F>>> for FVector2<i16, F> where
    F: Unsigned
[src]

impl<'_, F> AddAssign<&'_ Vector2<FPN<i32, F>>> for FVector2<i32, F> where
    F: Unsigned
[src]

impl<'_, F> AddAssign<&'_ Vector2<FPN<i64, F>>> for FVector2<i64, F> where
    F: Unsigned
[src]

impl<'_, F> AddAssign<&'_ Vector2<FPN<i8, F>>> for FVector2<i8, F> where
    F: Unsigned
[src]

impl<'_> AddAssign<&'_ Vector2<f32>> for Vector2<f32>[src]

impl<'_> AddAssign<&'_ Vector2<f64>> for Vector2<f64>[src]

impl<'_> AddAssign<&'_ Vector2<i16>> for Vector2<i16>[src]

impl<'_> AddAssign<&'_ Vector2<i32>> for Vector2<i32>[src]

impl<'_> AddAssign<&'_ Vector2<i64>> for Vector2<i64>[src]

impl<'_> AddAssign<&'_ Vector2<i8>> for Vector2<i8>[src]

impl<F> AddAssign<Vector2<FPN<i16, F>>> for FVector2<i16, F> where
    F: Unsigned
[src]

impl<F> AddAssign<Vector2<FPN<i32, F>>> for FVector2<i32, F> where
    F: Unsigned
[src]

impl<F> AddAssign<Vector2<FPN<i64, F>>> for FVector2<i64, F> where
    F: Unsigned
[src]

impl<F> AddAssign<Vector2<FPN<i8, F>>> for FVector2<i8, F> where
    F: Unsigned
[src]

impl AddAssign<Vector2<f32>> for Vector2<f32>[src]

impl AddAssign<Vector2<f64>> for Vector2<f64>[src]

impl AddAssign<Vector2<i16>> for Vector2<i16>[src]

impl<F> AddAssign<Vector2<i16>> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

impl AddAssign<Vector2<i32>> for Vector2<i32>[src]

impl<F> AddAssign<Vector2<i32>> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

impl AddAssign<Vector2<i64>> for Vector2<i64>[src]

impl<F> AddAssign<Vector2<i64>> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

impl AddAssign<Vector2<i8>> for Vector2<i8>[src]

impl<F> AddAssign<Vector2<i8>> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

impl<T> Clone for Vector2<T> where
    T: Clone
[src]

impl Cross<f32> for Vector2<f32>[src]

impl Cross<f64> for Vector2<f64>[src]

impl Cross<i16> for Vector2<i16>[src]

impl Cross<i32> for Vector2<i32>[src]

impl Cross<i64> for Vector2<i64>[src]

impl Cross<i8> for Vector2<i8>[src]

impl<T> Debug for Vector2<T> where
    T: Debug
[src]

impl<T> Display for Vector2<T> where
    T: Display
[src]

impl Div<f32> for Vector2<f32>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'_> Div<f32> for &'_ Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the / operator.

impl Div<f64> for Vector2<f64>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'_> Div<f64> for &'_ Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the / operator.

impl Div<i16> for Vector2<i16>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'_> Div<i16> for &'_ Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the / operator.

impl<F> Div<i16> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<i32> for Vector2<i32>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'_> Div<i32> for &'_ Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the / operator.

impl<F> Div<i32> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<i64> for Vector2<i64>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'_> Div<i64> for &'_ Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the / operator.

impl<F> Div<i64> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<i8> for Vector2<i8>[src]

type Output = Self

The resulting type after applying the / operator.

impl<'_> Div<i8> for &'_ Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the / operator.

impl<F> Div<i8> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the / operator.

impl<F> DivAssign<FPN<i16, F>> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

impl<F> DivAssign<FPN<i32, F>> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

impl<F> DivAssign<FPN<i64, F>> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

impl<F> DivAssign<FPN<i8, F>> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

impl DivAssign<f32> for Vector2<f32>[src]

impl DivAssign<f64> for Vector2<f64>[src]

impl DivAssign<i16> for Vector2<i16>[src]

impl<F> DivAssign<i16> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

impl DivAssign<i32> for Vector2<i32>[src]

impl<F> DivAssign<i32> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

impl DivAssign<i64> for Vector2<i64>[src]

impl<F> DivAssign<i64> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

impl DivAssign<i8> for Vector2<i8>[src]

impl<F> DivAssign<i8> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

impl Dot<f32> for Vector2<f32>[src]

impl Dot<f64> for Vector2<f64>[src]

impl Dot<i16> for Vector2<i16>[src]

impl Dot<i32> for Vector2<i32>[src]

impl Dot<i64> for Vector2<i64>[src]

impl Dot<i8> for Vector2<i8>[src]

impl<T> Eq for Vector2<T> where
    T: Eq
[src]

impl Mul<f32> for Vector2<f32>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<f32> for &'_ Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the * operator.

impl Mul<f64> for Vector2<f64>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<f64> for &'_ Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the * operator.

impl Mul<i16> for Vector2<i16>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<i16> for &'_ Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the * operator.

impl<F> Mul<i16> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<i32> for Vector2<i32>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<i32> for &'_ Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the * operator.

impl<F> Mul<i32> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<i64> for Vector2<i64>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<i64> for &'_ Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the * operator.

impl<F> Mul<i64> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<i8> for Vector2<i8>[src]

type Output = Self

The resulting type after applying the * operator.

impl<'_> Mul<i8> for &'_ Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the * operator.

impl<F> Mul<i8> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the * operator.

impl<F> MulAssign<FPN<i16, F>> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

impl<F> MulAssign<FPN<i32, F>> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

impl<F> MulAssign<FPN<i64, F>> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

impl<F> MulAssign<FPN<i8, F>> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

impl MulAssign<f32> for Vector2<f32>[src]

impl MulAssign<f64> for Vector2<f64>[src]

impl MulAssign<i16> for Vector2<i16>[src]

impl<F> MulAssign<i16> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

impl MulAssign<i32> for Vector2<i32>[src]

impl<F> MulAssign<i32> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

impl MulAssign<i64> for Vector2<i64>[src]

impl<F> MulAssign<i64> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

impl MulAssign<i8> for Vector2<i8>[src]

impl<F> MulAssign<i8> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

impl Neg for Vector2<i8>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the - operator.

impl Neg for Vector2<f64>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the - operator.

impl Neg for Vector2<i16>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the - operator.

impl Neg for Vector2<i32>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the - operator.

impl Neg for Vector2<i64>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the - operator.

impl Neg for Vector2<f32>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Neg for &'_ Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the - operator.

impl<T> PartialEq<Vector2<T>> for Vector2<T> where
    T: PartialEq
[src]

impl Polar<f32> for Vector2<f32>[src]

impl Polar<f64> for Vector2<f64>[src]

impl Polar<i16> for Vector2<i16>[src]

impl Polar<i32> for Vector2<i32>[src]

impl Polar<i64> for Vector2<i64>[src]

impl Polar<i8> for Vector2<i8>[src]

impl Rotate2<f32> for Vector2<f32>[src]

impl Rotate2<f64> for Vector2<f64>[src]

impl Rotate2<i16> for Vector2<i16>[src]

impl Rotate2<i32> for Vector2<i32>[src]

impl Rotate2<i64> for Vector2<i64>[src]

impl Rotate2<i8> for Vector2<i8>[src]

impl<'_, F> Sub<&'_ Vector2<FPN<i16, F>>> for &'_ FVector2<i16, F> where
    F: Unsigned
[src]

type Output = FVector2<i16, F>

The resulting type after applying the - operator.

impl<'_, F> Sub<&'_ Vector2<FPN<i16, F>>> for FVector2<i16, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, F> Sub<&'_ Vector2<FPN<i32, F>>> for &'_ FVector2<i32, F> where
    F: Unsigned
[src]

type Output = FVector2<i32, F>

The resulting type after applying the - operator.

impl<'_, F> Sub<&'_ Vector2<FPN<i32, F>>> for FVector2<i32, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, F> Sub<&'_ Vector2<FPN<i64, F>>> for &'_ FVector2<i64, F> where
    F: Unsigned
[src]

type Output = FVector2<i64, F>

The resulting type after applying the - operator.

impl<'_, F> Sub<&'_ Vector2<FPN<i64, F>>> for FVector2<i64, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, F> Sub<&'_ Vector2<FPN<i8, F>>> for &'_ FVector2<i8, F> where
    F: Unsigned
[src]

type Output = FVector2<i8, F>

The resulting type after applying the - operator.

impl<'_, F> Sub<&'_ Vector2<FPN<i8, F>>> for FVector2<i8, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<f32>> for &'_ Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<f32>> for Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<f64>> for &'_ Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<f64>> for Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<i16>> for &'_ Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<i16>> for Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<i32>> for &'_ Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<i32>> for Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<i64>> for &'_ Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<i64>> for Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<i8>> for &'_ Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the - operator.

impl<'_> Sub<&'_ Vector2<i8>> for Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the - operator.

impl<F> Sub<Vector2<FPN<i16, F>>> for FVector2<i16, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, F> Sub<Vector2<FPN<i16, F>>> for &'_ FVector2<i16, F> where
    F: Unsigned
[src]

type Output = FVector2<i16, F>

The resulting type after applying the - operator.

impl<F> Sub<Vector2<FPN<i32, F>>> for FVector2<i32, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, F> Sub<Vector2<FPN<i32, F>>> for &'_ FVector2<i32, F> where
    F: Unsigned
[src]

type Output = FVector2<i32, F>

The resulting type after applying the - operator.

impl<F> Sub<Vector2<FPN<i64, F>>> for FVector2<i64, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, F> Sub<Vector2<FPN<i64, F>>> for &'_ FVector2<i64, F> where
    F: Unsigned
[src]

type Output = FVector2<i64, F>

The resulting type after applying the - operator.

impl<F> Sub<Vector2<FPN<i8, F>>> for FVector2<i8, F> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, F> Sub<Vector2<FPN<i8, F>>> for &'_ FVector2<i8, F> where
    F: Unsigned
[src]

type Output = FVector2<i8, F>

The resulting type after applying the - operator.

impl Sub<Vector2<f32>> for Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the - operator.

impl<'_> Sub<Vector2<f32>> for &'_ Vector2<f32>[src]

type Output = Vector2<f32>

The resulting type after applying the - operator.

impl Sub<Vector2<f64>> for Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the - operator.

impl<'_> Sub<Vector2<f64>> for &'_ Vector2<f64>[src]

type Output = Vector2<f64>

The resulting type after applying the - operator.

impl Sub<Vector2<i16>> for Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the - operator.

impl<'_> Sub<Vector2<i16>> for &'_ Vector2<i16>[src]

type Output = Vector2<i16>

The resulting type after applying the - operator.

impl<F> Sub<Vector2<i16>> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<Vector2<i32>> for Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the - operator.

impl<'_> Sub<Vector2<i32>> for &'_ Vector2<i32>[src]

type Output = Vector2<i32>

The resulting type after applying the - operator.

impl<F> Sub<Vector2<i32>> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<Vector2<i64>> for Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the - operator.

impl<'_> Sub<Vector2<i64>> for &'_ Vector2<i64>[src]

type Output = Vector2<i64>

The resulting type after applying the - operator.

impl<F> Sub<Vector2<i64>> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<Vector2<i8>> for Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the - operator.

impl<'_> Sub<Vector2<i8>> for &'_ Vector2<i8>[src]

type Output = Vector2<i8>

The resulting type after applying the - operator.

impl<F> Sub<Vector2<i8>> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, F> SubAssign<&'_ Vector2<FPN<i16, F>>> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

impl<'_, F> SubAssign<&'_ Vector2<FPN<i32, F>>> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

impl<'_, F> SubAssign<&'_ Vector2<FPN<i64, F>>> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

impl<'_, F> SubAssign<&'_ Vector2<FPN<i8, F>>> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

impl<'_> SubAssign<&'_ Vector2<f32>> for Vector2<f32>[src]

impl<'_> SubAssign<&'_ Vector2<f64>> for Vector2<f64>[src]

impl<'_> SubAssign<&'_ Vector2<i16>> for Vector2<i16>[src]

impl<'_> SubAssign<&'_ Vector2<i32>> for Vector2<i32>[src]

impl<'_> SubAssign<&'_ Vector2<i64>> for Vector2<i64>[src]

impl<'_> SubAssign<&'_ Vector2<i8>> for Vector2<i8>[src]

impl<F> SubAssign<Vector2<FPN<i16, F>>> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

impl<F> SubAssign<Vector2<FPN<i32, F>>> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

impl<F> SubAssign<Vector2<FPN<i64, F>>> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

impl<F> SubAssign<Vector2<FPN<i8, F>>> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

impl SubAssign<Vector2<f32>> for Vector2<f32>[src]

impl SubAssign<Vector2<f64>> for Vector2<f64>[src]

impl SubAssign<Vector2<i16>> for Vector2<i16>[src]

impl<F> SubAssign<Vector2<i16>> for Vector2<FPN<i16, F>> where
    F: Unsigned
[src]

impl SubAssign<Vector2<i32>> for Vector2<i32>[src]

impl<F> SubAssign<Vector2<i32>> for Vector2<FPN<i32, F>> where
    F: Unsigned
[src]

impl SubAssign<Vector2<i64>> for Vector2<i64>[src]

impl<F> SubAssign<Vector2<i64>> for Vector2<FPN<i64, F>> where
    F: Unsigned
[src]

impl SubAssign<Vector2<i8>> for Vector2<i8>[src]

impl<F> SubAssign<Vector2<i8>> for Vector2<FPN<i8, F>> where
    F: Unsigned
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Vector2<T> where
    T: RefUnwindSafe

impl<T> Send for Vector2<T> where
    T: Send

impl<T> Sync for Vector2<T> where
    T: Sync

impl<T> Unpin for Vector2<T> where
    T: Unpin

impl<T> UnwindSafe for Vector2<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.