Struct rug_maths::Rational [−][src]
Fields
val: Rational
Trait Implementations
impl<'a> Add<&'a Rational> for Rational
[src]
type Output = Rational
The resulting type after applying the +
operator.
fn add(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Add<&'a Rational> for &'a Rational
[src]
type Output = Rational
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Rational) -> Self::Output
[src]
impl<B> Add<B> for Rational where
Rational: Add<B, Output = Rational>,
[src]
Rational: Add<B, Output = Rational>,
type Output = Rational
The resulting type after applying the +
operator.
fn add(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Add<B> for &'a Rational where
Rational: Add<B, Output = Rational>,
[src]
Rational: Add<B, Output = Rational>,
type Output = Rational
The resulting type after applying the +
operator.
fn add(self, rhs: B) -> Self::Output
[src]
impl Add<Rational> for Rational
[src]
type Output = Rational
The resulting type after applying the +
operator.
fn add(self, rhs: Rational) -> Self::Output
[src]
impl<'a> Add<Rational> for &'a Rational
[src]
type Output = Rational
The resulting type after applying the +
operator.
fn add(self, rhs: Rational) -> Self::Output
[src]
impl<'a> AddAssign<&'a Rational> for Rational
[src]
fn add_assign(&mut self, rhs: &Self)
[src]
impl<B> AddAssign<B> for Rational where
Rational: AddAssign<B>,
[src]
Rational: AddAssign<B>,
fn add_assign(&mut self, rhs: B)
[src]
impl AddAssign<Rational> for Rational
[src]
fn add_assign(&mut self, rhs: Self)
[src]
impl AddAssociative for Rational
[src]
impl AddCommutative for Rational
[src]
impl AddOrdered for Rational
[src]
impl ArchimedeanProperty for Rational
[src]
impl Clone for Rational
[src]
impl ComplexSubset for Rational
[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 Rational
[src]
impl Display for Rational
[src]
impl Distributive<Rational> for Rational
[src]
impl<'a> Div<&'a Rational> for Rational
[src]
type Output = Rational
The resulting type after applying the /
operator.
fn div(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Div<&'a Rational> for &'a Rational
[src]
type Output = Rational
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Rational) -> Self::Output
[src]
impl<B> Div<B> for Rational where
Rational: Div<B, Output = Rational>,
[src]
Rational: Div<B, Output = Rational>,
type Output = Rational
The resulting type after applying the /
operator.
fn div(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Div<B> for &'a Rational where
Rational: Div<B, Output = Rational>,
[src]
Rational: Div<B, Output = Rational>,
type Output = Rational
The resulting type after applying the /
operator.
fn div(self, rhs: B) -> Self::Output
[src]
impl Div<Rational> for Rational
[src]
type Output = Rational
The resulting type after applying the /
operator.
fn div(self, rhs: Rational) -> Self::Output
[src]
impl<'a> Div<Rational> for &'a Rational
[src]
type Output = Rational
The resulting type after applying the /
operator.
fn div(self, rhs: Rational) -> Self::Output
[src]
impl<'a> DivAssign<&'a Rational> for Rational
[src]
fn div_assign(&mut self, rhs: &Self)
[src]
impl<B> DivAssign<B> for Rational where
Rational: DivAssign<B>,
[src]
Rational: DivAssign<B>,
fn div_assign(&mut self, rhs: B)
[src]
impl DivAssign<Rational> for Rational
[src]
fn div_assign(&mut self, rhs: Self)
[src]
impl Divisibility for Rational
[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 Eq for Rational
[src]
impl<T> From<T> for Rational where
Rational: From<T>,
[src]
Rational: From<T>,
impl Inv for Rational
[src]
impl<'a> Mul<&'a Rational> for Rational
[src]
type Output = Rational
The resulting type after applying the *
operator.
fn mul(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Mul<&'a Rational> for &'a Rational
[src]
type Output = Rational
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Rational) -> Self::Output
[src]
impl<B> Mul<B> for Rational where
Rational: Mul<B, Output = Rational>,
[src]
Rational: Mul<B, Output = Rational>,
type Output = Rational
The resulting type after applying the *
operator.
fn mul(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Mul<B> for &'a Rational where
Rational: Mul<B, Output = Rational>,
[src]
Rational: Mul<B, Output = Rational>,
type Output = Rational
The resulting type after applying the *
operator.
fn mul(self, rhs: B) -> Self::Output
[src]
impl Mul<Rational> for Rational
[src]
type Output = Rational
The resulting type after applying the *
operator.
fn mul(self, rhs: Rational) -> Self::Output
[src]
impl<'a> Mul<Rational> for &'a Rational
[src]
type Output = Rational
The resulting type after applying the *
operator.
fn mul(self, rhs: Rational) -> Self::Output
[src]
impl<'a> MulAssign<&'a Rational> for Rational
[src]
fn mul_assign(&mut self, rhs: &Self)
[src]
impl<B> MulAssign<B> for Rational where
Rational: MulAssign<B>,
[src]
Rational: MulAssign<B>,
fn mul_assign(&mut self, rhs: B)
[src]
impl MulAssign<Rational> for Rational
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl MulAssociative for Rational
[src]
impl MulCommutative for Rational
[src]
impl MulOrdered for Rational
[src]
impl Neg for Rational
[src]
type Output = Rational
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl NoZeroDivisors for Rational
[src]
impl One for Rational
[src]
impl Ord for Rational
[src]
fn cmp(&self, other: &Rational) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Rational> for Rational
[src]
impl PartialOrd<Rational> for Rational
[src]
fn partial_cmp(&self, other: &Rational) -> 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 Sign for Rational
[src]
impl StructuralEq for Rational
[src]
impl StructuralPartialEq for Rational
[src]
impl<'a> Sub<&'a Rational> for Rational
[src]
type Output = Rational
The resulting type after applying the -
operator.
fn sub(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Sub<&'a Rational> for &'a Rational
[src]
type Output = Rational
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Rational) -> Self::Output
[src]
impl<B> Sub<B> for Rational where
Rational: Sub<B, Output = Rational>,
[src]
Rational: Sub<B, Output = Rational>,
type Output = Rational
The resulting type after applying the -
operator.
fn sub(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Sub<B> for &'a Rational where
Rational: Sub<B, Output = Rational>,
[src]
Rational: Sub<B, Output = Rational>,
type Output = Rational
The resulting type after applying the -
operator.
fn sub(self, rhs: B) -> Self::Output
[src]
impl Sub<Rational> for Rational
[src]
type Output = Rational
The resulting type after applying the -
operator.
fn sub(self, rhs: Rational) -> Self::Output
[src]
impl<'a> Sub<Rational> for &'a Rational
[src]
type Output = Rational
The resulting type after applying the -
operator.
fn sub(self, rhs: Rational) -> Self::Output
[src]
impl<'a> SubAssign<&'a Rational> for Rational
[src]
fn sub_assign(&mut self, rhs: &Self)
[src]
impl<B> SubAssign<B> for Rational where
Rational: SubAssign<B>,
[src]
Rational: SubAssign<B>,
fn sub_assign(&mut self, rhs: B)
[src]
impl SubAssign<Rational> for Rational
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
impl UniquelyFactorizable for Rational
[src]
impl Zero for Rational
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rational
impl Send for Rational
impl Sync for Rational
impl Unpin for Rational
impl UnwindSafe for Rational
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> 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> 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>,