Struct simple_vectors::Vector[][src]

pub struct Vector<T, const N: usize>(_);

Implementations

impl<T, const N: usize> Vector<T, N>[src]

pub fn new(elements: [T; N]) -> Self[src]

Trait Implementations

impl<T, const N: usize> Add<Vector<T, N>> for Vector<T, N> where
    T: Add<Output = T> + Copy
[src]

type Output = Self

The resulting type after applying the + operator.

impl<T, const N: usize> AddAssign<Vector<T, N>> for Vector<T, N> where
    T: AddAssign + Copy
[src]

impl<T: Real, const N: usize, const I: usize> Basis<I> for Vector<T, N>[src]

impl<T: Clone, const N: usize> Clone for Vector<T, N>[src]

impl<T: Copy, const N: usize> Copy for Vector<T, N>[src]

impl<T: Debug, const N: usize> Debug for Vector<T, N>[src]

impl<T: Default + Copy, const N: usize> Default for Vector<T, N>[src]

impl<T, const N: usize> Div<T> for Vector<T, N> where
    T: Div<Output = T> + Copy
[src]

type Output = Self

The resulting type after applying the / operator.

impl<T, const N: usize> DivAssign<T> for Vector<T, N> where
    T: DivAssign + Copy
[src]

impl<T: Real, const N: usize> DotProduct<Vector<T, N>> for Vector<T, N>[src]

type Output = Self::Scalar

The output type of the dot product.

impl<T: Eq, const N: usize> Eq for Vector<T, N>[src]

impl<I, T, const N: usize> Index<I> for Vector<T, N> where
    [T; N]: Index<I>, 
[src]

type Output = <[T; N] as Index<I>>::Output

The returned type after indexing.

impl<I, T, const N: usize> IndexMut<I> for Vector<T, N> where
    [T; N]: IndexMut<I>, 
[src]

impl<T: Real, const N: usize> InnerSpace for Vector<T, N>[src]

impl<'a, T, const N: usize> Into<&'a [T; N]> for &'a Vector<T, N>[src]

impl<T, const N: usize> Into<[T; N]> for Vector<T, N>[src]

impl<T, const N: usize> Mul<T> for Vector<T, N> where
    T: Mul<Output = T> + Copy
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T, const N: usize> Mul<Vector<T, N>> for Vector<T, N> where
    T: Add<Output = T> + Mul<Output = T> + Zero + Copy
[src]

type Output = T

The resulting type after applying the * operator.

impl<T, const N: usize> MulAssign<T> for Vector<T, N> where
    T: MulAssign + Copy
[src]

impl<T, const N: usize> Neg for Vector<T, N> where
    T: Neg<Output = T> + Copy
[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: PartialEq, const N: usize> PartialEq<Vector<T, N>> for Vector<T, N>[src]

impl<T, const N: usize> StructuralEq for Vector<T, N>[src]

impl<T, const N: usize> StructuralPartialEq for Vector<T, N>[src]

impl<T, const N: usize> Sub<Vector<T, N>> for Vector<T, N> where
    T: Sub<Output = T> + Copy
[src]

type Output = Self

The resulting type after applying the - operator.

impl<T, const N: usize> SubAssign<Vector<T, N>> for Vector<T, N> where
    T: SubAssign + Copy
[src]

impl<T: Real, const N: usize> VectorSpace for Vector<T, N>[src]

type Scalar = T

The scalar type of the vector space.

impl<T: Zero + Copy, const N: usize> Zero for Vector<T, N>[src]

Auto Trait Implementations

impl<T, const N: usize> RefUnwindSafe for Vector<T, N> where
    T: RefUnwindSafe

impl<T, const N: usize> Send for Vector<T, N> where
    T: Send

impl<T, const N: usize> Sync for Vector<T, N> where
    T: Sync

impl<T, const N: usize> Unpin for Vector<T, N> where
    T: Unpin

impl<T, const N: usize> UnwindSafe for Vector<T, N> where
    T: UnwindSafe

Blanket Implementations

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

impl<T> Bases for T where
    T: VectorSpace
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.