Struct rug_maths::Float[][src]

pub struct Float {
    pub val: Float,
}

Fields

val: Float

Implementations

impl Float[src]

pub fn with_val<T>(prec: u32, val: T) -> Self where
    Float: Assign<T>, 
[src]

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.

impl<'a> Add<&'a Float> for &'a Float[src]

type Output = Float

The resulting type after applying the + operator.

impl<B> Add<B> for Float where
    Float: Add<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the + operator.

impl<'a, B> Add<B> for &'a Float where
    Float: Add<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the + operator.

impl Add<Float> for Float[src]

type Output = Float

The resulting type after applying the + operator.

impl<'a> Add<Float> for &'a Float[src]

type Output = Float

The resulting type after applying the + operator.

impl<'a> AddAssign<&'a Float> for Float[src]

impl<B> AddAssign<B> for Float where
    Float: AddAssign<B>, 
[src]

impl AddAssign<Float> for Float[src]

impl AddAssociative for Float[src]

impl AddCommutative for Float[src]

impl AddOrdered for Float[src]

impl ArchimedeanDiv for Float[src]

impl ArchimedeanProperty for Float[src]

impl CheckedAdd for Float[src]

impl CheckedDiv for Float[src]

impl CheckedMul for Float[src]

impl CheckedNeg for Float[src]

impl CheckedRem for Float[src]

impl CheckedSub for Float[src]

impl Clone for Float[src]

impl ComplexSubset for Float[src]

type Real = Float

type Natural = Integer

type Integer = Integer

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.

impl<'a> Div<&'a Float> for &'a Float[src]

type Output = Float

The resulting type after applying the / operator.

impl<B> Div<B> for Float where
    Float: Div<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the / operator.

impl<'a, B> Div<B> for &'a Float where
    Float: Div<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the / operator.

impl Div<Float> for Float[src]

type Output = Float

The resulting type after applying the / operator.

impl<'a> Div<Float> for &'a Float[src]

type Output = Float

The resulting type after applying the / operator.

impl<'a> DivAssign<&'a Float> for Float[src]

impl<B> DivAssign<B> for Float where
    Float: DivAssign<B>, 
[src]

impl DivAssign<Float> for Float[src]

impl Divisibility for Float[src]

impl EuclideanDiv for Float[src]

type Naturals = Integer

The specific type used for the Euclidean Norm

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]

impl Inv for Float[src]

type Output = Float

The result after applying the operator.

impl<'a> Mul<&'a Float> for Float[src]

type Output = Float

The resulting type after applying the * operator.

impl<'a> Mul<&'a Float> for &'a Float[src]

type Output = Float

The resulting type after applying the * operator.

impl<B> Mul<B> for Float where
    Float: Mul<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the * operator.

impl<'a, B> Mul<B> for &'a Float where
    Float: Mul<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the * operator.

impl Mul<Float> for Float[src]

type Output = Float

The resulting type after applying the * operator.

impl<'a> Mul<Float> for &'a Float[src]

type Output = Float

The resulting type after applying the * operator.

impl<'a> MulAssign<&'a Float> for Float[src]

impl<B> MulAssign<B> for Float where
    Float: MulAssign<B>, 
[src]

impl MulAssign<Float> for Float[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.

impl NoZeroDivisors for Float[src]

impl One for Float[src]

impl PartialEq<Float> for Float[src]

impl PartialOrd<Float> for Float[src]

impl Real for Float[src]

impl RealExponential for Float[src]

impl<'a> Rem<&'a Float> for Float[src]

type Output = Float

The resulting type after applying the % operator.

impl<'a> Rem<&'a Float> for &'a Float[src]

type Output = Float

The resulting type after applying the % operator.

impl<B> Rem<B> for Float where
    Float: Rem<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the % operator.

impl<'a, B> Rem<B> for &'a Float where
    Float: Rem<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the % operator.

impl Rem<Float> for Float[src]

type Output = Float

The resulting type after applying the % operator.

impl<'a> Rem<Float> for &'a Float[src]

type Output = Float

The resulting type after applying the % operator.

impl<'a> RemAssign<&'a Float> for Float[src]

impl<B> RemAssign<B> for Float where
    Float: RemAssign<B>, 
[src]

impl RemAssign<Float> for Float[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.

impl<'a> Sub<&'a Float> for &'a Float[src]

type Output = Float

The resulting type after applying the - operator.

impl<B> Sub<B> for Float where
    Float: Sub<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the - operator.

impl<'a, B> Sub<B> for &'a Float where
    Float: Sub<B, Output = Float>, 
[src]

type Output = Float

The resulting type after applying the - operator.

impl Sub<Float> for Float[src]

type Output = Float

The resulting type after applying the - operator.

impl<'a> Sub<Float> for &'a Float[src]

type Output = Float

The resulting type after applying the - operator.

impl<'a> SubAssign<&'a Float> for Float[src]

impl<B> SubAssign<B> for Float where
    Float: SubAssign<B>, 
[src]

impl SubAssign<Float> for Float[src]

impl ToPrimitive for Float[src]

impl Trig for Float[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]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<G> MulN for G where
    G: AddSemigroup + Zero
[src]

impl<G> MulZ for G where
    G: AddMonoid + Negatable
[src]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

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]

impl<T> OverflowingAs for T[src]

impl<G> PowN for G where
    G: MulSemigroup + One
[src]

impl<G> PowZ for G where
    G: MulMonoid + Invertable
[src]

impl<T, Base> RefNum<Base> for T where
    T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>, 
[src]

impl<T> SaturatingAs for T[src]

impl<G> Signed for G where
    G: PartialOrd<G> + Zero
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]