Struct airmash_protocol::Vector2[][src]

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

Fields

Methods

impl<T> Vector2<T>
[src]

Trait Implementations

impl<T: Default> Default for Vector2<T>
[src]

Returns the "default value" for a type. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Vector2<T>
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Formats the value using the given formatter. Read more

impl<T, U> Add<U> for Vector2<T> where
    T: Add<U>,
    U: Clone + NotVec, 
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<T, U> Sub<U> for Vector2<T> where
    T: Sub<U>,
    U: Clone + NotVec, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<T, U> Mul<U> for Vector2<T> where
    T: Mul<U>,
    U: Clone + NotVec, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T, U> Div<U> for Vector2<T> where
    T: Div<U>,
    U: Clone + NotVec, 
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<T, U> Add<Vector2<U>> for Vector2<T> where
    T: Add<U>, 
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<T, U> Sub<Vector2<U>> for Vector2<T> where
    T: Sub<U>, 
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<T, U> Mul<Vector2<U>> for Vector2<T> where
    T: Mul<U>, 
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T, U> AddAssign<U> for Vector2<T> where
    Self: Add<U, Output = Vector2<T>> + Clone
[src]

Performs the += operation.

impl<T, U> SubAssign<U> for Vector2<T> where
    Self: Sub<U, Output = Vector2<T>> + Clone
[src]

Performs the -= operation.

impl<T, U> MulAssign<U> for Vector2<T> where
    Self: Mul<U, Output = Vector2<T>> + Clone
[src]

Performs the *= operation.

impl<T, U> DivAssign<U> for Vector2<T> where
    Self: Div<U, Output = Vector2<T>> + Clone
[src]

Performs the /= operation.

impl<T: 'static + Send + Sync> Component for Vector2<T>
[src]

Associated storage type for this component.

Auto Trait Implementations

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

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