Struct vecmat::transform::Shift[][src]

#[repr(transparent)]pub struct Shift<T, const N: usize> { /* fields omitted */ }

Shift transformation.

Implementations

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

pub fn from_vector(pos: Vector<T, N>) -> Self[src]

pub fn into_vector(self) -> Vector<T, N>[src]

Trait Implementations

impl<T, const N: usize> AbsDiffEq<Shift<T, N>> for Shift<T, N> where
    T: AbsDiffEq<Epsilon = T> + Copy
[src]

type Epsilon = T

Used for specifying relative comparisons.

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

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

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

impl<T, const N: usize> Distribution<Shift<T, N>> for Normal where
    Normal: Distribution<Vector<T, N>>, 
[src]

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<T, const N: usize> UnwindSafe for Shift<T, N> 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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,