Struct rug_maths::Float [−][src]
Fields
val: Float
Implementations
impl Float
[src]
pub fn with_val<T>(prec: u32, val: T) -> Self where
Float: Assign<T>,
[src]
Float: Assign<T>,
pub fn to_integer(&self) -> Option<Integer>
[src]
impl Float
[src]
pub fn to_rational(&self) -> Option<Rational>
[src]
Trait Implementations
impl<'a> Add<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the +
operator.
fn add(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Add<&'a Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Float) -> Self::Output
[src]
impl<B> Add<B> for Float where
Float: Add<B, Output = Float>,
[src]
Float: Add<B, Output = Float>,
type Output = Float
The resulting type after applying the +
operator.
fn add(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Add<B> for &'a Float where
Float: Add<B, Output = Float>,
[src]
Float: Add<B, Output = Float>,
type Output = Float
The resulting type after applying the +
operator.
fn add(self, rhs: B) -> Self::Output
[src]
impl Add<Float> for Float
[src]
type Output = Float
The resulting type after applying the +
operator.
fn add(self, rhs: Float) -> Self::Output
[src]
impl<'a> Add<Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the +
operator.
fn add(self, rhs: Float) -> Self::Output
[src]
impl<'a> AddAssign<&'a Float> for Float
[src]
fn add_assign(&mut self, rhs: &Self)
[src]
impl<B> AddAssign<B> for Float where
Float: AddAssign<B>,
[src]
Float: AddAssign<B>,
fn add_assign(&mut self, rhs: B)
[src]
impl AddAssign<Float> for Float
[src]
fn add_assign(&mut self, rhs: Self)
[src]
impl AddAssociative for Float
[src]
impl AddCommutative for Float
[src]
impl AddOrdered for Float
[src]
impl ArchimedeanDiv for Float
[src]
fn embed_nat<N: Natural>(n: N) -> Self
[src]
fn div_arch(self, rhs: Self) -> Self
[src]
fn rem_arch(self, rhs: Self) -> Self
[src]
fn div_alg_arch(self, rhs: Self) -> (Self, Self)
[src]
impl ArchimedeanProperty for Float
[src]
impl CheckedAdd for Float
[src]
fn checked_add(&self, v: &Self) -> Option<Self>
[src]
impl CheckedDiv for Float
[src]
fn checked_div(&self, v: &Self) -> Option<Self>
[src]
impl CheckedMul for Float
[src]
fn checked_mul(&self, v: &Self) -> Option<Self>
[src]
impl CheckedNeg for Float
[src]
fn checked_neg(&self) -> Option<Self>
[src]
impl CheckedRem for Float
[src]
fn checked_rem(&self, v: &Self) -> Option<Self>
[src]
impl CheckedSub for Float
[src]
fn checked_sub(&self, v: &Self) -> Option<Self>
[src]
impl Clone for Float
[src]
impl ComplexSubset for Float
[src]
type Real = Float
type Natural = Integer
type Integer = Integer
fn as_real(self) -> Self::Real
[src]
fn as_natural(self) -> Self::Natural
[src]
fn as_integer(self) -> Self::Integer
[src]
fn floor(self) -> Self
[src]
fn ceil(self) -> Self
[src]
fn round(self) -> Self
[src]
fn trunc(self) -> Self
[src]
fn fract(self) -> Self
[src]
fn im(self) -> Self
[src]
fn re(self) -> Self
[src]
fn conj(self) -> Self
[src]
pub fn modulus_sqrd(self) -> Self
[src]
pub fn modulus(self) -> Self::Real
[src]
impl Debug for Float
[src]
impl Display for Float
[src]
impl Distributive<Float> for Float
[src]
impl<'a> Div<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the /
operator.
fn div(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Div<&'a Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Float) -> Self::Output
[src]
impl<B> Div<B> for Float where
Float: Div<B, Output = Float>,
[src]
Float: Div<B, Output = Float>,
type Output = Float
The resulting type after applying the /
operator.
fn div(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Div<B> for &'a Float where
Float: Div<B, Output = Float>,
[src]
Float: Div<B, Output = Float>,
type Output = Float
The resulting type after applying the /
operator.
fn div(self, rhs: B) -> Self::Output
[src]
impl Div<Float> for Float
[src]
type Output = Float
The resulting type after applying the /
operator.
fn div(self, rhs: Float) -> Self::Output
[src]
impl<'a> Div<Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the /
operator.
fn div(self, rhs: Float) -> Self::Output
[src]
impl<'a> DivAssign<&'a Float> for Float
[src]
fn div_assign(&mut self, rhs: &Self)
[src]
impl<B> DivAssign<B> for Float where
Float: DivAssign<B>,
[src]
Float: DivAssign<B>,
fn div_assign(&mut self, rhs: B)
[src]
impl DivAssign<Float> for Float
[src]
fn div_assign(&mut self, rhs: Self)
[src]
impl Divisibility for Float
[src]
fn divides(self, rhs: Self) -> bool
[src]
fn divide(self, rhs: Self) -> Option<Self>
[src]
fn unit(&self) -> bool
[src]
fn inverse(self) -> Option<Self>
[src]
impl EuclideanDiv for Float
[src]
type Naturals = Integer
The specific type used for the Euclidean Norm
fn euclid_norm(&self) -> Self::Naturals
[src]
fn div_euc(self, rhs: Self) -> Self
[src]
fn rem_euc(self, rhs: Self) -> Self
[src]
fn div_alg(self, rhs: Self) -> (Self, Self)
[src]
impl Exponential for Float
[src]
impl From<Float> for Float
[src]
impl From<f32> for Float
[src]
impl From<f64> for Float
[src]
impl From<i128> for Float
[src]
impl From<i16> for Float
[src]
impl From<i32> for Float
[src]
impl From<i64> for Float
[src]
impl From<i8> for Float
[src]
impl From<isize> for Float
[src]
impl From<u128> for Float
[src]
impl From<u16> for Float
[src]
impl From<u32> for Float
[src]
impl From<u64> for Float
[src]
impl From<u8> for Float
[src]
impl From<usize> for Float
[src]
impl FromPrimitive for Float
[src]
fn from_i64(n: i64) -> Option<Self>
[src]
fn from_u64(n: u64) -> Option<Self>
[src]
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_i128(n: i128) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u32(n: u32) -> Option<Self>
[src]
fn from_u128(n: u128) -> Option<Self>
[src]
fn from_f32(n: f32) -> Option<Self>
[src]
fn from_f64(n: f64) -> Option<Self>
[src]
impl Inv for Float
[src]
impl<'a> Mul<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the *
operator.
fn mul(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Mul<&'a Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Float) -> Self::Output
[src]
impl<B> Mul<B> for Float where
Float: Mul<B, Output = Float>,
[src]
Float: Mul<B, Output = Float>,
type Output = Float
The resulting type after applying the *
operator.
fn mul(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Mul<B> for &'a Float where
Float: Mul<B, Output = Float>,
[src]
Float: Mul<B, Output = Float>,
type Output = Float
The resulting type after applying the *
operator.
fn mul(self, rhs: B) -> Self::Output
[src]
impl Mul<Float> for Float
[src]
type Output = Float
The resulting type after applying the *
operator.
fn mul(self, rhs: Float) -> Self::Output
[src]
impl<'a> Mul<Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the *
operator.
fn mul(self, rhs: Float) -> Self::Output
[src]
impl<'a> MulAssign<&'a Float> for Float
[src]
fn mul_assign(&mut self, rhs: &Self)
[src]
impl<B> MulAssign<B> for Float where
Float: MulAssign<B>,
[src]
Float: MulAssign<B>,
fn mul_assign(&mut self, rhs: B)
[src]
impl MulAssign<Float> for Float
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl MulAssociative for Float
[src]
impl MulCommutative for Float
[src]
impl MulOrdered for Float
[src]
impl Neg for Float
[src]
type Output = Float
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl NoZeroDivisors for Float
[src]
impl One for Float
[src]
impl PartialEq<Float> for Float
[src]
impl PartialOrd<Float> for Float
[src]
fn partial_cmp(&self, other: &Float) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Real for Float
[src]
impl RealExponential for Float
[src]
pub fn try_pow(self, power: Self) -> Option<Self>
[src]
pub fn try_root(self, index: Self) -> Option<Self>
[src]
pub fn try_log(self, base: Self) -> Option<Self>
[src]
pub fn ln(self) -> Self
[src]
pub fn log(self, base: Self) -> Self
[src]
pub fn pow(self, p: Self) -> Self
[src]
pub fn root(self, r: Self) -> Self
[src]
pub fn exp2(self) -> Self
[src]
pub fn exp10(self) -> Self
[src]
pub fn log2(self) -> Self
[src]
pub fn log10(self) -> Self
[src]
pub fn sqrt(self) -> Self
[src]
pub fn cbrt(self) -> Self
[src]
pub fn ln_1p(self) -> Self
[src]
pub fn exp_m1(self) -> Self
[src]
pub fn e() -> Self
[src]
pub fn ln_2() -> Self
[src]
pub fn ln_10() -> Self
[src]
pub fn log2_e() -> Self
[src]
pub fn log10_e() -> Self
[src]
pub fn log2_10() -> Self
[src]
pub fn log10_2() -> Self
[src]
pub fn sqrt_2() -> Self
[src]
pub fn frac_1_sqrt_2() -> Self
[src]
impl<'a> Rem<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the %
operator.
fn rem(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Rem<&'a Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the %
operator.
fn rem(self, rhs: &'a Float) -> Self::Output
[src]
impl<B> Rem<B> for Float where
Float: Rem<B, Output = Float>,
[src]
Float: Rem<B, Output = Float>,
type Output = Float
The resulting type after applying the %
operator.
fn rem(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Rem<B> for &'a Float where
Float: Rem<B, Output = Float>,
[src]
Float: Rem<B, Output = Float>,
type Output = Float
The resulting type after applying the %
operator.
fn rem(self, rhs: B) -> Self::Output
[src]
impl Rem<Float> for Float
[src]
type Output = Float
The resulting type after applying the %
operator.
fn rem(self, rhs: Float) -> Self::Output
[src]
impl<'a> Rem<Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the %
operator.
fn rem(self, rhs: Float) -> Self::Output
[src]
impl<'a> RemAssign<&'a Float> for Float
[src]
fn rem_assign(&mut self, rhs: &Self)
[src]
impl<B> RemAssign<B> for Float where
Float: RemAssign<B>,
[src]
Float: RemAssign<B>,
fn rem_assign(&mut self, rhs: B)
[src]
impl RemAssign<Float> for Float
[src]
fn rem_assign(&mut self, rhs: Self)
[src]
impl Sign for Float
[src]
impl StructuralPartialEq for Float
[src]
impl<'a> Sub<&'a Float> for Float
[src]
type Output = Float
The resulting type after applying the -
operator.
fn sub(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Sub<&'a Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Float) -> Self::Output
[src]
impl<B> Sub<B> for Float where
Float: Sub<B, Output = Float>,
[src]
Float: Sub<B, Output = Float>,
type Output = Float
The resulting type after applying the -
operator.
fn sub(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Sub<B> for &'a Float where
Float: Sub<B, Output = Float>,
[src]
Float: Sub<B, Output = Float>,
type Output = Float
The resulting type after applying the -
operator.
fn sub(self, rhs: B) -> Self::Output
[src]
impl Sub<Float> for Float
[src]
type Output = Float
The resulting type after applying the -
operator.
fn sub(self, rhs: Float) -> Self::Output
[src]
impl<'a> Sub<Float> for &'a Float
[src]
type Output = Float
The resulting type after applying the -
operator.
fn sub(self, rhs: Float) -> Self::Output
[src]
impl<'a> SubAssign<&'a Float> for Float
[src]
fn sub_assign(&mut self, rhs: &Self)
[src]
impl<B> SubAssign<B> for Float where
Float: SubAssign<B>,
[src]
Float: SubAssign<B>,
fn sub_assign(&mut self, rhs: B)
[src]
impl SubAssign<Float> for Float
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
impl ToPrimitive for Float
[src]
fn to_i64(&self) -> Option<i64>
[src]
fn to_u64(&self) -> Option<u64>
[src]
fn to_isize(&self) -> Option<isize>
[src]
fn to_i8(&self) -> Option<i8>
[src]
fn to_i16(&self) -> Option<i16>
[src]
fn to_i32(&self) -> Option<i32>
[src]
fn to_i128(&self) -> Option<i128>
[src]
fn to_usize(&self) -> Option<usize>
[src]
fn to_u8(&self) -> Option<u8>
[src]
fn to_u16(&self) -> Option<u16>
[src]
fn to_u32(&self) -> Option<u32>
[src]
fn to_u128(&self) -> Option<u128>
[src]
fn to_f32(&self) -> Option<f32>
[src]
fn to_f64(&self) -> Option<f64>
[src]
impl Trig for Float
[src]
fn sin(self) -> Self
[src]
fn cos(self) -> Self
[src]
fn tan(self) -> Self
[src]
fn sinh(self) -> Self
[src]
fn cosh(self) -> Self
[src]
fn tanh(self) -> Self
[src]
fn asin(self) -> Self
[src]
fn acos(self) -> Self
[src]
fn atan(self) -> Self
[src]
fn asinh(self) -> Self
[src]
fn acosh(self) -> Self
[src]
fn atanh(self) -> Self
[src]
fn try_asin(self) -> Option<Self>
[src]
fn try_acos(self) -> Option<Self>
[src]
fn try_asinh(self) -> Option<Self>
[src]
fn try_acosh(self) -> Option<Self>
[src]
fn try_atanh(self) -> Option<Self>
[src]
fn atan2(y: Self, x: Self) -> Self
[src]
fn pi() -> Self
[src]
pub fn sin_cos(self) -> (Self, Self)
[src]
pub fn frac_2_pi() -> Self
[src]
pub fn frac_pi_2() -> Self
[src]
pub fn frac_pi_3() -> Self
[src]
pub fn frac_pi_4() -> Self
[src]
pub fn frac_pi_6() -> Self
[src]
pub fn frac_pi_8() -> Self
[src]
pub fn pythag_const() -> Self
[src]
pub fn pythag_const_inv() -> Self
[src]
pub fn to_degrees(self) -> Self
[src]
pub fn to_radians(self) -> Self
[src]
impl Zero for Float
[src]
Auto Trait Implementations
impl RefUnwindSafe for Float
impl Send for Float
impl Sync for Float
impl Unpin for Float
impl UnwindSafe for Float
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Az for T
[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<G> MulN for G where
G: AddSemigroup + Zero,
[src]
G: AddSemigroup + Zero,
impl<G> MulZ for G where
G: AddMonoid + Negatable,
[src]
G: AddMonoid + Negatable,
pub fn mul_z<N>(self, n: N) -> Self where
N: IntegerSubset,
[src]
N: IntegerSubset,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<G> PowN for G where
G: MulSemigroup + One,
[src]
G: MulSemigroup + One,
impl<G> PowZ for G where
G: MulMonoid + Invertable,
[src]
G: MulMonoid + Invertable,
pub fn pow_z<Z>(self, n: Z) -> Self where
Z: IntegerSubset,
[src]
Z: IntegerSubset,
impl<T, Base> RefNum<Base> for T where
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
[src]
T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<G> Signed for G where
G: PartialOrd<G> + Zero,
[src]
G: PartialOrd<G> + Zero,
pub default fn positive(&self) -> bool
[src]
pub default fn negative(&self) -> bool
[src]
pub default fn non_negative(&self) -> bool
[src]
pub default fn non_positive(&self) -> bool
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,