Struct coord::vec1::Vec1[][src]

pub struct Vec1<'a, T: 'a + VecItem<'a>> {
    pub x: T,
    // some fields omitted
}

Fields

Methods

impl<'a, T: VecItem<'a>> Vec1<'a, T>
[src]

Trait Implementations

impl<'a, T: Copy + 'a + VecItem<'a>> Copy for Vec1<'a, T>
[src]

impl<'a, T: Clone + 'a + VecItem<'a>> Clone for Vec1<'a, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T: VecItem<'a>> Vector<'a> for Vec1<'a, T>
[src]

impl<'a, T: VecItem<'a> + Debug> Debug for Vec1<'a, T>
[src]

Formats the value using the given formatter. Read more

impl<'a, T: VecItem<'a> + Display> Display for Vec1<'a, T>
[src]

Formats the value using the given formatter. Read more

impl<'a, T: VecItem<'a>> From<T> for Vec1<'a, T>
[src]

Performs the conversion.

impl<'a, T: VecItem<'a>> From<[T; 1]> for Vec1<'a, T>
[src]

Performs the conversion.

impl<'a, T> Add for Vec1<'a, T> where
    T: VecItem<'a> + Add,
    T::Output: VecItem<'a> + Add
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a, T> Sub for Vec1<'a, T> where
    T: VecItem<'a> + Sub,
    T::Output: VecItem<'a> + Sub
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, T> Mul for Vec1<'a, T> where
    T: VecItem<'a> + Mul,
    T::Output: VecItem<'a> + Mul
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, T> Div for Vec1<'a, T> where
    T: VecItem<'a> + Div,
    T::Output: VecItem<'a> + Div
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, T> Add<T> for Vec1<'a, T> where
    T: VecItem<'a> + Add,
    T::Output: VecItem<'a> + Add
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<'a, T> Sub<T> for Vec1<'a, T> where
    T: VecItem<'a> + Sub,
    T::Output: VecItem<'a> + Sub
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, T> Mul<T> for Vec1<'a, T> where
    T: VecItem<'a> + Mul,
    T::Output: VecItem<'a> + Mul
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, T> Div<T> for Vec1<'a, T> where
    T: VecItem<'a> + Div,
    T::Output: VecItem<'a> + Div
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, T> AddAssign for Vec1<'a, T> where
    T: VecItem<'a> + Add<Output = T>, 
[src]

Performs the += operation.

impl<'a, T> SubAssign for Vec1<'a, T> where
    T: VecItem<'a> + Sub<Output = T>, 
[src]

Performs the -= operation.

impl<'a, T> MulAssign for Vec1<'a, T> where
    T: VecItem<'a> + Mul<Output = T>, 
[src]

Performs the *= operation.

impl<'a, T> DivAssign for Vec1<'a, T> where
    T: VecItem<'a> + Div<Output = T>, 
[src]

Performs the /= operation.

impl<'a, T> AddAssign<T> for Vec1<'a, T> where
    T: VecItem<'a> + Add<Output = T>, 
[src]

Performs the += operation.

impl<'a, T> SubAssign<T> for Vec1<'a, T> where
    T: VecItem<'a> + Sub<Output = T>, 
[src]

Performs the -= operation.

impl<'a, T> MulAssign<T> for Vec1<'a, T> where
    T: VecItem<'a> + Mul<Output = T>, 
[src]

Performs the *= operation.

impl<'a, T> DivAssign<T> for Vec1<'a, T> where
    T: VecItem<'a> + Div<Output = T>, 
[src]

Performs the /= operation.

impl<'a, T> VecNum<'a> for Vec1<'a, T> where
    T: VecItem<'a> + Num
[src]

Calculates the sum of all components of the vector

Calculates the produce of all components of the vector

impl<'a, T> VecSigned<'a> for Vec1<'a, T> where
    T: VecItem<'a> + Signed
[src]

Calculates the snake length (also known as 'manhattan distance') of the vector Read more

impl<'a, T> VecFloat<'a> for Vec1<'a, T> where
    T: VecItem<'a> + Float
[src]

Calculates the magnitude of the vector

Auto Trait Implementations

impl<'a, T> Send for Vec1<'a, T> where
    T: Send + Sync

impl<'a, T> Sync for Vec1<'a, T> where
    T: Sync