Struct vecmat::Quaternion
source · [−]#[repr(transparent)]pub struct Quaternion<T> { /* private fields */ }
Expand description
Quaternion.
Implementations
sourceimpl<T> Quaternion<T>
impl<T> Quaternion<T>
pub fn new(w: T, x: T, y: T, z: T) -> Self
pub fn from_vector(vec: Vector4<T>) -> Self
pub fn from_array(arr: [T; 4]) -> Self
pub fn from_tuple(tup: (T, T, T, T)) -> Self
pub fn from_scalar_and_vector3(w: T, vec: Vector3<T>) -> Self
pub fn into_vector(self) -> Vector4<T>
pub fn into_array(self) -> [T; 4]
pub fn into_tuple(self) -> (T, T, T, T)
pub fn into_scalar_and_vector3(self) -> (T, Vector3<T>)
sourceimpl<T> Quaternion<T> where
T: Copy,
impl<T> Quaternion<T> where
T: Copy,
sourceimpl<T> Quaternion<T>
impl<T> Quaternion<T>
sourceimpl<T> Quaternion<T> where
T: Neg<Output = T> + Copy,
impl<T> Quaternion<T> where
T: Neg<Output = T> + Copy,
pub fn into_matrix(self) -> Matrix4x4<T>
sourceimpl<T> Quaternion<T> where
T: Neg<Output = T>,
impl<T> Quaternion<T> where
T: Neg<Output = T>,
sourceimpl<T> Quaternion<T> where
T: Zero + One,
impl<T> Quaternion<T> where
T: Zero + One,
sourceimpl<T> Quaternion<T> where
T: Add<Output = T> + Mul<Output = T> + Copy,
impl<T> Quaternion<T> where
T: Add<Output = T> + Mul<Output = T> + Copy,
sourceimpl<T: Float> Quaternion<T>
impl<T: Float> Quaternion<T>
sourceimpl<T> Quaternion<T> where
T: Float,
impl<T> Quaternion<T> where
T: Float,
Trait Implementations
sourceimpl<T> AbsDiffEq<Quaternion<T>> for Quaternion<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
impl<T> AbsDiffEq<Quaternion<T>> for Quaternion<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
sourcefn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
sourcefn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
sourcefn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of AbsDiffEq::abs_diff_eq
.
sourceimpl<T> Add<Complex<T>> for Quaternion<T> where
T: Add<Output = T>,
impl<T> Add<Complex<T>> for Quaternion<T> where
T: Add<Output = T>,
sourceimpl<T> Add<Quaternion<T>> for Quaternion<T> where
T: Add<Output = T>,
impl<T> Add<Quaternion<T>> for Quaternion<T> where
T: Add<Output = T>,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the +
operator.
sourceimpl Add<Quaternion<f32>> for f32
impl Add<Quaternion<f32>> for f32
Workaround for reverse addition.
type Output = Quaternion<f32>
type Output = Quaternion<f32>
The resulting type after applying the +
operator.
sourceimpl Add<Quaternion<f32>> for Complex<f32>
impl Add<Quaternion<f32>> for Complex<f32>
Workaround for reverse addition.
type Output = Quaternion<f32>
type Output = Quaternion<f32>
The resulting type after applying the +
operator.
sourceimpl Add<Quaternion<f64>> for f64
impl Add<Quaternion<f64>> for f64
Workaround for reverse addition.
type Output = Quaternion<f64>
type Output = Quaternion<f64>
The resulting type after applying the +
operator.
sourceimpl Add<Quaternion<f64>> for Complex<f64>
impl Add<Quaternion<f64>> for Complex<f64>
Workaround for reverse addition.
type Output = Quaternion<f64>
type Output = Quaternion<f64>
The resulting type after applying the +
operator.
sourceimpl<T> Add<T> for Quaternion<T> where
T: Add<Output = T>,
impl<T> Add<T> for Quaternion<T> where
T: Add<Output = T>,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the +
operator.
sourceimpl<T> AddAssign<Complex<T>> for Quaternion<T> where
T: AddAssign,
impl<T> AddAssign<Complex<T>> for Quaternion<T> where
T: AddAssign,
sourcefn add_assign(&mut self, other: Complex<T>)
fn add_assign(&mut self, other: Complex<T>)
Performs the +=
operation. Read more
sourceimpl<T> AddAssign<Quaternion<T>> for Quaternion<T> where
T: AddAssign,
impl<T> AddAssign<Quaternion<T>> for Quaternion<T> where
T: AddAssign,
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the +=
operation. Read more
sourceimpl<T> AddAssign<T> for Quaternion<T> where
T: AddAssign,
impl<T> AddAssign<T> for Quaternion<T> where
T: AddAssign,
sourcefn add_assign(&mut self, other: T)
fn add_assign(&mut self, other: T)
Performs the +=
operation. Read more
sourceimpl<T: Clone> Clone for Quaternion<T>
impl<T: Clone> Clone for Quaternion<T>
sourcefn clone(&self) -> Quaternion<T>
fn clone(&self) -> Quaternion<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> Conj for Quaternion<T> where
T: Neg<Output = T>,
impl<T> Conj for Quaternion<T> where
T: Neg<Output = T>,
sourceimpl<T: Debug> Debug for Quaternion<T>
impl<T: Debug> Debug for Quaternion<T>
sourceimpl<T: Default> Default for Quaternion<T>
impl<T: Default> Default for Quaternion<T>
sourcefn default() -> Quaternion<T>
fn default() -> Quaternion<T>
Returns the “default value” for a type. Read more
sourceimpl<T> Directional<Quaternion<T>> for Moebius<Complex<T>> where
Self: Transform<Quaternion<T>>,
Quaternion<T>: Normalize,
impl<T> Directional<Quaternion<T>> for Moebius<Complex<T>> where
Self: Transform<Quaternion<T>>,
Quaternion<T>: Normalize,
sourcefn apply_dir(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>
fn apply_dir(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>
Returns the result of the direction transformation at the specified position.
sourcefn apply_normal(
&self,
pos: Quaternion<T>,
normal: Quaternion<T>
) -> Quaternion<T>
fn apply_normal(
&self,
pos: Quaternion<T>,
normal: Quaternion<T>
) -> Quaternion<T>
Returns the result of the normal transformation at the specified position. Read more
sourceimpl<T: Display> Display for Quaternion<T>
impl<T: Display> Display for Quaternion<T>
sourceimpl<T> Distribution<Quaternion<T>> for Normal where
Normal: Distribution<Vector<T, 4>>,
impl<T> Distribution<Quaternion<T>> for Normal where
Normal: Distribution<Vector<T, 4>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Quaternion<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Quaternion<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T: Float> Distribution<Quaternion<T>> for NonZero where
NonZero: Distribution<Vector<T, 4>>,
impl<T: Float> Distribution<Quaternion<T>> for NonZero where
NonZero: Distribution<Vector<T, 4>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Quaternion<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Quaternion<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T: Float> Distribution<Quaternion<T>> for Unit where
Unit: Distribution<Vector<T, 4>>,
impl<T: Float> Distribution<Quaternion<T>> for Unit where
Unit: Distribution<Vector<T, 4>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Quaternion<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Quaternion<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T> Div<Quaternion<T>> for Quaternion<T> where
T: Neg<Output = T> + Num + Copy,
impl<T> Div<Quaternion<T>> for Quaternion<T> where
T: Neg<Output = T> + Num + Copy,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the /
operator.
sourceimpl<T> Div<Quaternion<T>> for Complex<T> where
T: Neg<Output = T> + Num + Copy,
impl<T> Div<Quaternion<T>> for Complex<T> where
T: Neg<Output = T> + Num + Copy,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the /
operator.
sourcefn div(self, other: Quaternion<T>) -> Self::Output
fn div(self, other: Quaternion<T>) -> Self::Output
Performs the /
operation. Read more
sourceimpl Div<Quaternion<f32>> for f32
impl Div<Quaternion<f32>> for f32
Workaround for reverse division.
type Output = Quaternion<f32>
type Output = Quaternion<f32>
The resulting type after applying the /
operator.
sourceimpl Div<Quaternion<f64>> for f64
impl Div<Quaternion<f64>> for f64
Workaround for reverse division.
type Output = Quaternion<f64>
type Output = Quaternion<f64>
The resulting type after applying the /
operator.
sourceimpl<T> Div<T> for Quaternion<T> where
T: Div<Output = T> + Copy,
impl<T> Div<T> for Quaternion<T> where
T: Div<Output = T> + Copy,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the /
operator.
sourceimpl<T> DivAssign<Complex<T>> for Quaternion<T> where
Self: Div<Complex<T>, Output = Self> + Copy,
impl<T> DivAssign<Complex<T>> for Quaternion<T> where
Self: Div<Complex<T>, Output = Self> + Copy,
sourcefn div_assign(&mut self, other: Complex<T>)
fn div_assign(&mut self, other: Complex<T>)
Performs the /=
operation. Read more
sourceimpl<T> DivAssign<Quaternion<T>> for Quaternion<T> where
Self: Div<Output = Self> + Copy,
impl<T> DivAssign<Quaternion<T>> for Quaternion<T> where
Self: Div<Output = Self> + Copy,
sourcefn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the /=
operation. Read more
sourceimpl<T> DivAssign<T> for Quaternion<T> where
Self: Div<T, Output = Self> + Copy,
impl<T> DivAssign<T> for Quaternion<T> where
Self: Div<T, Output = Self> + Copy,
sourcefn div_assign(&mut self, other: T)
fn div_assign(&mut self, other: T)
Performs the /=
operation. Read more
sourceimpl<T> Dot<Quaternion<T>> for Quaternion<T> where
T: Add<Output = T> + Mul<Output = T>,
impl<T> Dot<Quaternion<T>> for Quaternion<T> where
T: Add<Output = T> + Mul<Output = T>,
sourceimpl<T> From<[T; 4]> for Quaternion<T>
impl<T> From<[T; 4]> for Quaternion<T>
sourceimpl<T> From<(T, T, T, T)> for Quaternion<T>
impl<T> From<(T, T, T, T)> for Quaternion<T>
sourceimpl<T> From<Quaternion<T>> for Vector4<T>
impl<T> From<Quaternion<T>> for Vector4<T>
sourcefn from(quat: Quaternion<T>) -> Self
fn from(quat: Quaternion<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Quaternion<T>> for (T, Vector3<T>)
impl<T> From<Quaternion<T>> for (T, Vector3<T>)
sourcefn from(quat: Quaternion<T>) -> Self
fn from(quat: Quaternion<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Quaternion<T>> for [T; 4]
impl<T> From<Quaternion<T>> for [T; 4]
sourcefn from(quat: Quaternion<T>) -> Self
fn from(quat: Quaternion<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Quaternion<T>> for (T, T, T, T)
impl<T> From<Quaternion<T>> for (T, T, T, T)
sourcefn from(quat: Quaternion<T>) -> Self
fn from(quat: Quaternion<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Quaternion<T>> for Rotation3<T>
impl<T> From<Quaternion<T>> for Rotation3<T>
sourcefn from(quat: Quaternion<T>) -> Self
fn from(quat: Quaternion<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Rotation3<T>> for Quaternion<T>
impl<T> From<Rotation3<T>> for Quaternion<T>
sourceimpl<T> From<Vector<T, 4_usize>> for Quaternion<T>
impl<T> From<Vector<T, 4_usize>> for Quaternion<T>
sourceimpl<T> Inv for Quaternion<T> where
T: Float,
impl<T> Inv for Quaternion<T> where
T: Float,
type Output = Quaternion<T>
type Output = Quaternion<T>
The result after applying the operator.
sourceimpl<T> Mul<Complex<T>> for Quaternion<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
impl<T> Mul<Complex<T>> for Quaternion<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
sourceimpl<T> Mul<Quaternion<T>> for Quaternion<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
impl<T> Mul<Quaternion<T>> for Quaternion<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the *
operator.
sourceimpl<T> Mul<Quaternion<T>> for Complex<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
impl<T> Mul<Quaternion<T>> for Complex<T> where
T: Add<Output = T> + Sub<Output = T> + Mul<Output = T> + Copy,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the *
operator.
sourcefn mul(self, other: Quaternion<T>) -> Self::Output
fn mul(self, other: Quaternion<T>) -> Self::Output
Performs the *
operation. Read more
sourceimpl Mul<Quaternion<f32>> for f32
impl Mul<Quaternion<f32>> for f32
Workaround for reverse multiplication.
type Output = Quaternion<f32>
type Output = Quaternion<f32>
The resulting type after applying the *
operator.
sourceimpl Mul<Quaternion<f64>> for f64
impl Mul<Quaternion<f64>> for f64
Workaround for reverse multiplication.
type Output = Quaternion<f64>
type Output = Quaternion<f64>
The resulting type after applying the *
operator.
sourceimpl<T> Mul<T> for Quaternion<T> where
T: Mul<Output = T> + Copy,
impl<T> Mul<T> for Quaternion<T> where
T: Mul<Output = T> + Copy,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the *
operator.
sourceimpl<T> MulAssign<Complex<T>> for Quaternion<T> where
Self: Mul<Complex<T>, Output = Self> + Copy,
impl<T> MulAssign<Complex<T>> for Quaternion<T> where
Self: Mul<Complex<T>, Output = Self> + Copy,
sourcefn mul_assign(&mut self, other: Complex<T>)
fn mul_assign(&mut self, other: Complex<T>)
Performs the *=
operation. Read more
sourceimpl<T> MulAssign<Quaternion<T>> for Quaternion<T> where
Self: Mul<Output = Self> + Copy,
impl<T> MulAssign<Quaternion<T>> for Quaternion<T> where
Self: Mul<Output = Self> + Copy,
sourcefn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the *=
operation. Read more
sourceimpl<T> MulAssign<T> for Quaternion<T> where
Self: Mul<T, Output = Self> + Copy,
impl<T> MulAssign<T> for Quaternion<T> where
Self: Mul<T, Output = Self> + Copy,
sourcefn mul_assign(&mut self, other: T)
fn mul_assign(&mut self, other: T)
Performs the *=
operation. Read more
sourceimpl<T> Neg for Quaternion<T> where
T: Neg<Output = T>,
impl<T> Neg for Quaternion<T> where
T: Neg<Output = T>,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the -
operator.
sourceimpl<T> NormL1 for Quaternion<T> where
Vector4<T>: NormL1<Output = T>,
impl<T> NormL1 for Quaternion<T> where
Vector4<T>: NormL1<Output = T>,
sourceimpl<T: Float> NormL2 for Quaternion<T>
impl<T: Float> NormL2 for Quaternion<T>
type Output = T
type Output = T
Type of the norm.
sourcefn norm_l2_sqr(self) -> T
fn norm_l2_sqr(self) -> T
Square norm of the element.
sourceimpl<T> Normalize for Quaternion<T> where
T: Float,
impl<T> Normalize for Quaternion<T> where
T: Float,
sourceimpl<T: Neg<Output = T> + Num + Copy> Num for Quaternion<T>
impl<T: Neg<Output = T> + Num + Copy> Num for Quaternion<T>
type FromStrRadixErr = <T as Num>::FromStrRadixErr
sourcefn from_str_radix(_s: &str, _radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(_s: &str, _radix: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically 2..=36
). Read more
sourceimpl<T: PartialEq> PartialEq<Quaternion<T>> for Quaternion<T>
impl<T: PartialEq> PartialEq<Quaternion<T>> for Quaternion<T>
sourcefn eq(&self, other: &Quaternion<T>) -> bool
fn eq(&self, other: &Quaternion<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Quaternion<T>) -> bool
fn ne(&self, other: &Quaternion<T>) -> bool
This method tests for !=
.
sourceimpl<T> Product<Quaternion<T>> for Quaternion<T> where
Self: One + Mul,
impl<T> Product<Quaternion<T>> for Quaternion<T> where
Self: One + Mul,
sourceimpl<T: Neg<Output = T> + Num + Copy> Rem<Quaternion<T>> for Quaternion<T>
impl<T: Neg<Output = T> + Num + Copy> Rem<Quaternion<T>> for Quaternion<T>
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the %
operator.
sourceimpl<T> Sub<Complex<T>> for Quaternion<T> where
T: Sub<Output = T>,
impl<T> Sub<Complex<T>> for Quaternion<T> where
T: Sub<Output = T>,
sourceimpl<T> Sub<Quaternion<T>> for Quaternion<T> where
T: Sub<Output = T>,
impl<T> Sub<Quaternion<T>> for Quaternion<T> where
T: Sub<Output = T>,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the -
operator.
sourceimpl Sub<Quaternion<f32>> for f32
impl Sub<Quaternion<f32>> for f32
Workaround for reverse subtraction.
type Output = Quaternion<f32>
type Output = Quaternion<f32>
The resulting type after applying the -
operator.
sourceimpl Sub<Quaternion<f32>> for Complex<f32>
impl Sub<Quaternion<f32>> for Complex<f32>
Workaround for reverse subtraction.
type Output = Quaternion<f32>
type Output = Quaternion<f32>
The resulting type after applying the -
operator.
sourceimpl Sub<Quaternion<f64>> for f64
impl Sub<Quaternion<f64>> for f64
Workaround for reverse subtraction.
type Output = Quaternion<f64>
type Output = Quaternion<f64>
The resulting type after applying the -
operator.
sourceimpl Sub<Quaternion<f64>> for Complex<f64>
impl Sub<Quaternion<f64>> for Complex<f64>
Workaround for reverse subtraction.
type Output = Quaternion<f64>
type Output = Quaternion<f64>
The resulting type after applying the -
operator.
sourceimpl<T> Sub<T> for Quaternion<T> where
T: Sub<Output = T>,
impl<T> Sub<T> for Quaternion<T> where
T: Sub<Output = T>,
type Output = Quaternion<T>
type Output = Quaternion<T>
The resulting type after applying the -
operator.
sourceimpl<T> SubAssign<Complex<T>> for Quaternion<T> where
T: SubAssign,
impl<T> SubAssign<Complex<T>> for Quaternion<T> where
T: SubAssign,
sourcefn sub_assign(&mut self, other: Complex<T>)
fn sub_assign(&mut self, other: Complex<T>)
Performs the -=
operation. Read more
sourceimpl<T> SubAssign<Quaternion<T>> for Quaternion<T> where
T: SubAssign,
impl<T> SubAssign<Quaternion<T>> for Quaternion<T> where
T: SubAssign,
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the -=
operation. Read more
sourceimpl<T> SubAssign<T> for Quaternion<T> where
T: SubAssign,
impl<T> SubAssign<T> for Quaternion<T> where
T: SubAssign,
sourcefn sub_assign(&mut self, other: T)
fn sub_assign(&mut self, other: T)
Performs the -=
operation. Read more
sourceimpl<T> Sum<Quaternion<T>> for Quaternion<T> where
Self: Zero + Add,
impl<T> Sum<Quaternion<T>> for Quaternion<T> where
Self: Zero + Add,
sourceimpl<T> Transform<Quaternion<T>> for Moebius<Complex<T>> where
T: Neg<Output = T> + Num + NumCast + Copy,
impl<T> Transform<Quaternion<T>> for Moebius<Complex<T>> where
T: Neg<Output = T> + Num + NumCast + Copy,
sourcefn apply(&self, pos: Quaternion<T>) -> Quaternion<T>
fn apply(&self, pos: Quaternion<T>) -> Quaternion<T>
Perform the transformation itself.
sourcefn deriv(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>
fn deriv(&self, pos: Quaternion<T>, dir: Quaternion<T>) -> Quaternion<T>
Find transformation directional derivative at specified point.
sourceimpl<T> Zero for Quaternion<T> where
T: Zero,
impl<T> Zero for Quaternion<T> where
T: Zero,
impl<T: Copy> Copy for Quaternion<T>
impl<T> StructuralPartialEq for Quaternion<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Quaternion<T> where
T: RefUnwindSafe,
impl<T> Send for Quaternion<T> where
T: Send,
impl<T> Sync for Quaternion<T> where
T: Sync,
impl<T> Unpin for Quaternion<T> where
T: Unpin,
impl<T> UnwindSafe for Quaternion<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more