[][src]Struct posrel::Vector

pub struct Vector<T: Scalar>(_, _, _);

Methods

impl<T: Scalar> Vector<T>[src]

pub fn x(self) -> T[src]

pub fn y(self) -> T[src]

pub fn z(self) -> T[src]

Trait Implementations

impl<T: Clone + Scalar> Clone for Vector<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Scalar> From<Vector<T>> for PositionVector<T>[src]

impl<T: Scalar> From<PositionVector<T>> for Vector<T>[src]

impl<T: Scalar> From<Vector<T>> for RelativeVector<T>[src]

impl<T: Scalar> From<RelativeVector<T>> for Vector<T>[src]

impl<T: PartialEq + Scalar> PartialEq<Vector<T>> for Vector<T>[src]

impl<T: Copy + Scalar> Copy for Vector<T>[src]

impl<T: IntScalar> Eq for Vector<T>[src]

impl<T: Scalar> Display for Vector<T>[src]

impl<T: Debug + Scalar> Debug for Vector<T>[src]

impl<T: Scalar, U: Scalar> Div<U> for Vector<T> where
    T: Div<U, Output = T>, 
[src]

type Output = Self

The resulting type after applying the / operator.

impl<T: Scalar> Add<Vector<T>> for Vector<T>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Scalar> Sub<Vector<T>> for Vector<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Scalar, U: Scalar> Mul<U> for Vector<T> where
    T: Mul<U, Output = T>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Scalar> Neg for Vector<T>[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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