[−][src]Struct doubled::Doubled
Methods
impl Doubled<f32>
[src]
pub fn abs(self) -> Self
[src]
pub fn square(self) -> Self
[src]
pub fn square_as_f(self) -> f32
[src]
pub fn mul_as_f(self, other: Self) -> f32
[src]
impl Doubled<f64>
[src]
pub fn abs(self) -> Self
[src]
pub fn square(self) -> Self
[src]
pub fn square_as_f(self) -> f64
[src]
pub fn mul_as_f(self, other: Self) -> f64
[src]
impl<T> Doubled<T> where
T: Sized,
[src]
T: Sized,
Trait Implementations
impl FromMask for Doubled<f32>
[src]
impl FromMask for Doubled<f64>
[src]
impl<T> Normalize for Doubled<T> where
T: Copy + Add<Output = T> + Sub<Output = T>,
[src]
T: Copy + Add<Output = T> + Sub<Output = T>,
impl<T> Scale<T> for Doubled<T> where
T: Copy + Mul<Output = T>,
[src]
T: Copy + Mul<Output = T>,
impl CheckOrder<Doubled<f32>> for Doubled<f32>
[src]
fn check_order(self, other: Self)
[src]
impl CheckOrder<f32> for Doubled<f32>
[src]
fn check_order(self, other: f32)
[src]
impl CheckOrder<Doubled<f32>> for f32
[src]
fn check_order(self, other: Doubled<f32>)
[src]
impl CheckOrder<Doubled<f64>> for Doubled<f64>
[src]
fn check_order(self, other: Self)
[src]
impl CheckOrder<f64> for Doubled<f64>
[src]
fn check_order(self, other: f64)
[src]
impl CheckOrder<Doubled<f64>> for f64
[src]
fn check_order(self, other: Doubled<f64>)
[src]
impl RecPre<Doubled<f32>> for Doubled<f32>
[src]
impl RecPre<Doubled<f32>> for f32
[src]
impl RecPre<Doubled<f64>> for Doubled<f64>
[src]
impl RecPre<Doubled<f64>> for f64
[src]
impl<T> AddChecked<Doubled<T>> for Doubled<T> where
Doubled<T>: CheckOrder,
T: Copy + Add<Output = T> + Sub<Output = T>,
[src]
Doubled<T>: CheckOrder,
T: Copy + Add<Output = T> + Sub<Output = T>,
type Output = Self
fn add_checked(self, other: Self) -> Self::Output
[src]
impl<T> AddChecked<T> for Doubled<T> where
Doubled<T>: CheckOrder<T>,
T: Copy + Add<Output = T> + Sub<Output = T>,
[src]
Doubled<T>: CheckOrder<T>,
T: Copy + Add<Output = T> + Sub<Output = T>,
type Output = Self
fn add_checked(self, other: T) -> Self::Output
[src]
impl<T> AddChecked<Doubled<T>> for T where
T: Copy + CheckOrder<Doubled<T>> + Add<Output = T> + Sub<Output = T>,
[src]
T: Copy + CheckOrder<Doubled<T>> + Add<Output = T> + Sub<Output = T>,
impl<T> AddCheckedAssign<Doubled<T>> for Doubled<T> where
Self: Copy + AddChecked<Output = Self>,
[src]
Self: Copy + AddChecked<Output = Self>,
fn add_checked_assign(&mut self, other: Self)
[src]
impl<T> AddCheckedAssign<T> for Doubled<T> where
Self: AddChecked<T, Output = Self>,
T: Copy,
[src]
Self: AddChecked<T, Output = Self>,
T: Copy,
fn add_checked_assign(&mut self, other: T)
[src]
impl<T> SubChecked<Doubled<T>> for Doubled<T> where
Doubled<T>: CheckOrder,
T: Copy + Add<Output = T> + Sub<Output = T>,
[src]
Doubled<T>: CheckOrder,
T: Copy + Add<Output = T> + Sub<Output = T>,
type Output = Self
fn sub_checked(self, other: Self) -> Self::Output
[src]
impl<T> SubChecked<T> for Doubled<T> where
Doubled<T>: CheckOrder<T>,
T: Copy + Add<Output = T> + Sub<Output = T>,
[src]
Doubled<T>: CheckOrder<T>,
T: Copy + Add<Output = T> + Sub<Output = T>,
type Output = Self
fn sub_checked(self, other: T) -> Self::Output
[src]
impl<T: PartialEq> PartialEq<Doubled<T>> for Doubled<T>
[src]
impl Add<Doubled<f32>> for f32
[src]
type Output = Doubled<f32>
The resulting type after applying the +
operator.
fn add(self, other: Doubled<f32>) -> Self::Output
[src]
impl Add<Doubled<f64>> for f64
[src]
type Output = Doubled<f64>
The resulting type after applying the +
operator.
fn add(self, other: Doubled<f64>) -> Self::Output
[src]
impl<T> Add<Doubled<T>> for Doubled<T> where
T: Copy + Add<Output = T> + Sub<Output = T>,
[src]
T: Copy + Add<Output = T> + Sub<Output = T>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<T> Add<T> for Doubled<T> where
T: Copy + Add<Output = T> + Sub<Output = T>,
[src]
T: Copy + Add<Output = T> + Sub<Output = T>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: T) -> Self
[src]
impl<T> Sub<Doubled<T>> for Doubled<T> where
Self: Add<Output = Self> + Neg<Output = Self>,
[src]
Self: Add<Output = Self> + Neg<Output = Self>,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl Mul<Doubled<f32>> for Doubled<f32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl Mul<f32> for Doubled<f32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: f32) -> Self
[src]
impl Mul<Doubled<f64>> for Doubled<f64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl Mul<f64> for Doubled<f64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: f64) -> Self
[src]
impl Div<Doubled<f32>> for Doubled<f32>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl Div<Doubled<f64>> for Doubled<f64>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl<T> Neg for Doubled<T> where
T: Copy + Neg<Output = T>,
[src]
T: Copy + Neg<Output = T>,
impl<T> AddAssign<Doubled<T>> for Doubled<T> where
Self: Copy + Add<Output = Self>,
[src]
Self: Copy + Add<Output = Self>,
fn add_assign(&mut self, other: Self)
[src]
impl<T> AddAssign<T> for Doubled<T> where
Self: Copy + Add<T, Output = Self>,
[src]
Self: Copy + Add<T, Output = Self>,
fn add_assign(&mut self, other: T)
[src]
impl<T> MulAssign<Doubled<T>> for Doubled<T> where
Self: Copy + Mul<Output = Self>,
[src]
Self: Copy + Mul<Output = Self>,
fn mul_assign(&mut self, other: Self)
[src]
impl<T> MulAssign<T> for Doubled<T> where
Self: Copy + Mul<T, Output = Self>,
[src]
Self: Copy + Mul<T, Output = Self>,
fn mul_assign(&mut self, other: T)
[src]
impl<T: Debug> Debug for Doubled<T>
[src]
impl From<f32> for Doubled<f32>
[src]
impl From<Doubled<f32>> for f32
[src]
impl From<f64> for Doubled<f32>
[src]
impl From<f64> for Doubled<f64>
[src]
impl From<Doubled<f64>> for f64
[src]
impl<T: Copy> Copy for Doubled<T>
[src]
impl<T: Clone> Clone for Doubled<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> AddAsDoubled for T where
T: Add<T, Output = T> + Sub<T, Output = T> + Copy,
[src]
T: Add<T, Output = T> + Sub<T, Output = T> + Copy,
fn add_as_doubled(Self, T) -> Doubled<T>
[src]
impl<T> AddCheckedAsDoubled for T where
T: CheckOrder<T> + Add<T, Output = T> + Sub<T, Output = T> + Copy,
[src]
T: CheckOrder<T> + Add<T, Output = T> + Sub<T, Output = T> + Copy,
fn add_checked_as_doubled(Self, T) -> Doubled<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AddChecked<Doubled<T>> for T where
T: CheckOrder<Doubled<T>> + Add<T, Output = T> + Sub<T, Output = T> + Copy,
[src]
T: CheckOrder<Doubled<T>> + Add<T, Output = T> + Sub<T, Output = T> + Copy,
type Output = Doubled<T>
fn add_checked(Self, Doubled<T>) -> <T as AddChecked<Doubled<T>>>::Output
[src]
impl<T> AddChecked<Doubled<T>> for T where
T: CheckOrder<Doubled<T>> + Add<T, Output = T> + Sub<T, Output = T> + Copy,
[src]
T: CheckOrder<Doubled<T>> + Add<T, Output = T> + Sub<T, Output = T> + Copy,