#[repr(C)]pub struct Cartesian<T> {
pub re: T,
pub im: T,
}Fields
re: TReal part.
im: TImaginary part.
Implementations
Trait Implementations
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Add<&'_ Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Add<&'_ Cartesian<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Add<&'_ Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Add<&'_ Complex<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Add<&'_ mut Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Add<&'_ mut Cartesian<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Add<&'_ mut Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Add<&'_ mut Complex<T>> for Cartesian<T>
sourceimpl<T1: MixedNum + MixedOps + MixedZero, T2: MixedNum + MixedOps + MixedNumConversion<T1>> Add<T1> for Cartesian<T2>
impl<T1: MixedNum + MixedOps + MixedZero, T2: MixedNum + MixedOps + MixedNumConversion<T1>> Add<T1> for Cartesian<T2>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<&'_ Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<&'_ Cartesian<T>> for Cartesian<T>
sourcefn add_assign(&mut self, rhs: &Cartesian<T>)
fn add_assign(&mut self, rhs: &Cartesian<T>)
Performs the += operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<&'_ Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<&'_ Complex<T>> for Cartesian<T>
sourcefn add_assign(&mut self, rhs: &Complex<T>)
fn add_assign(&mut self, rhs: &Complex<T>)
Performs the += operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<&'_ mut Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<&'_ mut Cartesian<T>> for Cartesian<T>
sourcefn add_assign(&mut self, rhs: &mut Cartesian<T>)
fn add_assign(&mut self, rhs: &mut Cartesian<T>)
Performs the += operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<&'_ mut Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<&'_ mut Complex<T>> for Cartesian<T>
sourcefn add_assign(&mut self, rhs: &mut Complex<T>)
fn add_assign(&mut self, rhs: &mut Complex<T>)
Performs the += operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<Cartesian<T>> for Cartesian<T>
sourcefn add_assign(&mut self, rhs: Cartesian<T>)
fn add_assign(&mut self, rhs: Cartesian<T>)
Performs the += operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> AddAssign<Complex<T>> for Cartesian<T>
sourcefn add_assign(&mut self, rhs: Complex<T>)
fn add_assign(&mut self, rhs: Complex<T>)
Performs the += operation. Read more
sourceimpl<T1: MixedNum + MixedOps + MixedZero, T2: MixedOps + MixedNumConversion<T1>> AddAssign<T1> for Cartesian<T2>
impl<T1: MixedNum + MixedOps + MixedZero, T2: MixedOps + MixedNumConversion<T1>> AddAssign<T1> for Cartesian<T2>
sourcefn add_assign(&mut self, rhs: T1)
fn add_assign(&mut self, rhs: T1)
Example
use mixed_num::*;
use mixed_num::traits::*;
let mut c_num = Cartesian::new(1f32,2f32);
c_num += 2f64;
assert_eq!{ c_num.to_string(), "3+2i" };sourceimpl<T: MixedComplex + NewFromCartesian<T2>, T2: MixedNum + MixedNumSigned> Conj<T> for Cartesian<T2>
impl<T: MixedComplex + NewFromCartesian<T2>, T2: MixedNum + MixedNumSigned> Conj<T> for Cartesian<T2>
sourceimpl<T> Display for Cartesian<T> where
T: Display + PartialOrd + Clone + MixedZero + MixedNum + Sub<Output = T>,
impl<T> Display for Cartesian<T> where
T: Display + PartialOrd + Clone + MixedZero + MixedNum + Sub<Output = T>,
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedPowi> Div<&'_ Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedPowi> Div<&'_ Cartesian<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedPowi> Div<&'_ Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedPowi> Div<&'_ Complex<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedPowi> Div<&'_ mut Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedPowi> Div<&'_ mut Cartesian<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedPowi> Div<&'_ mut Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedPowi> Div<&'_ mut Complex<T>> for Cartesian<T>
sourceimpl<T1: MixedNumSigned + MixedOps + MixedZero, T2: MixedReal + MixedOps + MixedNumConversion<T1>> Div<T1> for Cartesian<T2>
impl<T1: MixedNumSigned + MixedOps + MixedZero, T2: MixedReal + MixedOps + MixedNumConversion<T1>> Div<T1> for Cartesian<T2>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<&'_ Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<&'_ Cartesian<T>> for Cartesian<T>
sourcefn div_assign(&mut self, rhs: &Cartesian<T>)
fn div_assign(&mut self, rhs: &Cartesian<T>)
Performs the /= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<&'_ Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<&'_ Complex<T>> for Cartesian<T>
sourcefn div_assign(&mut self, rhs: &Complex<T>)
fn div_assign(&mut self, rhs: &Complex<T>)
Performs the /= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<&'_ mut Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<&'_ mut Cartesian<T>> for Cartesian<T>
sourcefn div_assign(&mut self, rhs: &mut Cartesian<T>)
fn div_assign(&mut self, rhs: &mut Cartesian<T>)
Performs the /= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<&'_ mut Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<&'_ mut Complex<T>> for Cartesian<T>
sourcefn div_assign(&mut self, rhs: &mut Complex<T>)
fn div_assign(&mut self, rhs: &mut Complex<T>)
Performs the /= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<Cartesian<T>> for Cartesian<T>
sourcefn div_assign(&mut self, rhs: Cartesian<T>)
fn div_assign(&mut self, rhs: Cartesian<T>)
Performs the /= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero + MixedPowi> DivAssign<Complex<T>> for Cartesian<T>
sourcefn div_assign(&mut self, rhs: Complex<T>)
fn div_assign(&mut self, rhs: Complex<T>)
Performs the /= operation. Read more
sourceimpl<T1: MixedNumSigned + MixedOps + MixedZero, T2: MixedReal + MixedOps + MixedNumConversion<T1>> DivAssign<T1> for Cartesian<T2>
impl<T1: MixedNumSigned + MixedOps + MixedZero, T2: MixedReal + MixedOps + MixedNumConversion<T1>> DivAssign<T1> for Cartesian<T2>
sourcefn div_assign(&mut self, rhs: T1)
fn div_assign(&mut self, rhs: T1)
Example
use mixed_num::*;
use mixed_num::traits::*;
let mut c_num = Cartesian::new(-2f32,4f32);
c_num /= 2f64;
assert_eq!{ c_num.to_string(), "-1+2i" };sourceimpl<T: MixedNum + MixedNumSigned + MixedSqrt + MixedPowi + MixedOps + MixedZero> MixedAbs for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedSqrt + MixedPowi + MixedOps + MixedZero> MixedAbs for Cartesian<T>
sourceimpl<T: MixedNum + MixedZero> MixedComplexConversion<T> for Cartesian<T>
impl<T: MixedNum + MixedZero> MixedComplexConversion<T> for Cartesian<T>
sourcefn mixed_to_complex(number: T) -> Self
fn mixed_to_complex(number: T) -> Self
Type cast from real number T to Complex
sourceimpl<T: MixedNum + MixedNumConversion<T2> + MixedZero, T2: MixedNum> MixedNumConversion<T2> for Cartesian<T>
impl<T: MixedNum + MixedNumConversion<T2> + MixedZero, T2: MixedNum> MixedNumConversion<T2> for Cartesian<T>
sourcefn mixed_from_num(number: T2) -> Self
fn mixed_from_num(number: T2) -> Self
Generic type cast from numeric type T.
sourcefn mixed_to_num(&self) -> T2
fn mixed_to_num(&self) -> T2
Generic type cast to numeric type T.
sourceimpl<T: MixedNum + MixedZero> MixedZero for Cartesian<T>
impl<T: MixedNum + MixedZero> MixedZero for Cartesian<T>
sourcefn mixed_zero() -> Self
fn mixed_zero() -> Self
Return the zero value of type Self.
sourceimpl<T: MixedNum + MixedNumSigned + MixedTrigonometry + MixedWrapPhase + MixedOps> Mul<&'_ Polar<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedTrigonometry + MixedWrapPhase + MixedOps> Mul<&'_ Polar<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedTrigonometry + MixedWrapPhase + MixedOps> Mul<&'_ mut Polar<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedTrigonometry + MixedWrapPhase + MixedOps> Mul<&'_ mut Polar<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedSqrt + MixedOps + MixedAbs + MixedPowi + MixedAtan + ToPolar<T>> Mul<Cartesian<T>> for Polar<T>
impl<T: MixedNum + MixedNumSigned + MixedSqrt + MixedOps + MixedAbs + MixedPowi + MixedAtan + ToPolar<T>> Mul<Cartesian<T>> for Polar<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedTrigonometry + MixedWrapPhase + MixedOps> Mul<Polar<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedTrigonometry + MixedWrapPhase + MixedOps> Mul<Polar<T>> for Cartesian<T>
sourceimpl<T1: MixedNum + MixedOps, T2: MixedNum + MixedOps + MixedNumConversion<T1>> Mul<T1> for Cartesian<T2>
impl<T1: MixedNum + MixedOps, T2: MixedNum + MixedOps + MixedNumConversion<T1>> Mul<T1> for Cartesian<T2>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedTrigonometry + MixedWrapPhase> MulAssign<&'_ Polar<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedTrigonometry + MixedWrapPhase> MulAssign<&'_ Polar<T>> for Cartesian<T>
sourcefn mul_assign(&mut self, rhs: &Polar<T>)
fn mul_assign(&mut self, rhs: &Polar<T>)
Performs the *= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedTrigonometry + MixedWrapPhase> MulAssign<&'_ mut Polar<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedTrigonometry + MixedWrapPhase> MulAssign<&'_ mut Polar<T>> for Cartesian<T>
sourcefn mul_assign(&mut self, rhs: &mut Polar<T>)
fn mul_assign(&mut self, rhs: &mut Polar<T>)
Performs the *= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedTrigonometry + MixedWrapPhase> MulAssign<Polar<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedTrigonometry + MixedWrapPhase> MulAssign<Polar<T>> for Cartesian<T>
sourcefn mul_assign(&mut self, rhs: Polar<T>)
fn mul_assign(&mut self, rhs: Polar<T>)
Performs the *= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned> NewFromCartesian<T> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned> NewFromCartesian<T> for Cartesian<T>
sourcefn new_from_cartesian(re: T, im: T) -> Self
fn new_from_cartesian(re: T, im: T) -> Self
Type cast from real number T to Complex
sourceimpl<T: MixedNum + MixedNumSigned + MixedWrapPhase + MixedTrigonometry + MixedOps> NewFromPolar<T> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedWrapPhase + MixedTrigonometry + MixedOps> NewFromPolar<T> for Cartesian<T>
sourcefn new_from_polar(mag: T, ang: T) -> Self
fn new_from_polar(mag: T, ang: T) -> Self
Create a complex number from polar coordinates.
sourceimpl<T: PartialOrd> PartialOrd<Cartesian<T>> for Cartesian<T>
impl<T: PartialOrd> PartialOrd<Cartesian<T>> for Cartesian<T>
sourcefn partial_cmp(&self, other: &Cartesian<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Cartesian<T>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Sub<&'_ Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Sub<&'_ Cartesian<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Sub<&'_ Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Sub<&'_ Complex<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Sub<&'_ mut Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Sub<&'_ mut Cartesian<T>> for Cartesian<T>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Sub<&'_ mut Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> Sub<&'_ mut Complex<T>> for Cartesian<T>
sourceimpl<T1: MixedNum + MixedOps, T2: MixedOps + MixedNumConversion<T1>> Sub<T1> for Cartesian<T2>
impl<T1: MixedNum + MixedOps, T2: MixedOps + MixedNumConversion<T1>> Sub<T1> for Cartesian<T2>
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<&'_ Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<&'_ Cartesian<T>> for Cartesian<T>
sourcefn sub_assign(&mut self, rhs: &Cartesian<T>)
fn sub_assign(&mut self, rhs: &Cartesian<T>)
Performs the -= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<&'_ Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<&'_ Complex<T>> for Cartesian<T>
sourcefn sub_assign(&mut self, rhs: &Complex<T>)
fn sub_assign(&mut self, rhs: &Complex<T>)
Performs the -= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<&'_ mut Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<&'_ mut Cartesian<T>> for Cartesian<T>
sourcefn sub_assign(&mut self, rhs: &mut Cartesian<T>)
fn sub_assign(&mut self, rhs: &mut Cartesian<T>)
Performs the -= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<&'_ mut Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<&'_ mut Complex<T>> for Cartesian<T>
sourcefn sub_assign(&mut self, rhs: &mut Complex<T>)
fn sub_assign(&mut self, rhs: &mut Complex<T>)
Performs the -= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<Cartesian<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<Cartesian<T>> for Cartesian<T>
sourcefn sub_assign(&mut self, rhs: Cartesian<T>)
fn sub_assign(&mut self, rhs: Cartesian<T>)
Performs the -= operation. Read more
sourceimpl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<Complex<T>> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedOps + MixedZero> SubAssign<Complex<T>> for Cartesian<T>
sourcefn sub_assign(&mut self, rhs: Complex<T>)
fn sub_assign(&mut self, rhs: Complex<T>)
Performs the -= operation. Read more
sourceimpl<T1: MixedNum + MixedOps, T2: MixedOps + MixedNumConversion<T1>> SubAssign<T1> for Cartesian<T2>
impl<T1: MixedNum + MixedOps, T2: MixedOps + MixedNumConversion<T1>> SubAssign<T1> for Cartesian<T2>
sourcefn sub_assign(&mut self, rhs: T1)
fn sub_assign(&mut self, rhs: T1)
Example
use mixed_num::*;
use mixed_num::traits::*;
let mut c_num = Cartesian::new(1f32,2f32);
c_num = c_num-2f64;
assert_eq!{ c_num.to_string(), "-1+2i" };sourceimpl<T: MixedNum + MixedNumSigned> ToCartesian<T> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned> ToCartesian<T> for Cartesian<T>
sourcefn to_cartesian(&self) -> Cartesian<T>
fn to_cartesian(&self) -> Cartesian<T>
Converison to Complex
sourceimpl<T: MixedNum + MixedNumSigned + MixedSqrt + MixedOps + MixedAbs + MixedPowi + MixedAtan> ToPolar<T> for Cartesian<T>
impl<T: MixedNum + MixedNumSigned + MixedSqrt + MixedOps + MixedAbs + MixedPowi + MixedAtan> ToPolar<T> for Cartesian<T>
impl<T: Copy> Copy for Cartesian<T>
impl<T: Eq> Eq for Cartesian<T>
impl<T: MixedNum + MixedNumSigned> MixedComplex for Cartesian<T>
impl<T> StructuralEq for Cartesian<T>
impl<T> StructuralPartialEq for Cartesian<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Cartesian<T> where
T: RefUnwindSafe,
impl<T> Send for Cartesian<T> where
T: Send,
impl<T> Sync for Cartesian<T> where
T: Sync,
impl<T> Unpin for Cartesian<T> where
T: Unpin,
impl<T> UnwindSafe for Cartesian<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> CheckedAs for T
impl<T> CheckedAs for T
sourcefn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
sourcefn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceimpl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
sourcefn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
sourceimpl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
sourcefn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcefn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
sourcefn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
OverflowingCasts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcefn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
sourcefn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcefn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
sourcefn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
UnwrappedCasts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcefn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
sourcefn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
WrappingCasts the value.