Struct relp::data::number_types::rational::RationalBig [−][src]
pub struct RationalBig(pub BigRational);
Expand description
A big rational type that currently completely relies on the methods of num::BigRational
.
Implementations
Trait Implementations
impl Add<&'_ Binary> for RationalBig
[src]
impl Add<&'_ Binary> for RationalBig
[src]impl AddAssign<&'_ Big> for Big
[src]
impl AddAssign<&'_ Big> for Big
[src]fn add_assign(&mut self, rhs: &Self)
[src]
fn add_assign(&mut self, rhs: &Self)
[src]Performs the +=
operation. Read more
impl AddAssign<&'_ Binary> for RationalBig
[src]
impl AddAssign<&'_ Binary> for RationalBig
[src]fn add_assign(&mut self, rhs: &Binary)
[src]
fn add_assign(&mut self, rhs: &Binary)
[src]Performs the +=
operation. Read more
impl AddAssign<&'_ One> for Big
[src]
impl AddAssign<&'_ One> for Big
[src]fn add_assign(&mut self, _: &One)
[src]
fn add_assign(&mut self, _: &One)
[src]Performs the +=
operation. Read more
impl AddAssign<&'_ Ratio<i128>> for Big
[src]
impl AddAssign<&'_ Ratio<i128>> for Big
[src]fn add_assign(&mut self, rhs: &Rational128)
[src]
fn add_assign(&mut self, rhs: &Rational128)
[src]Performs the +=
operation. Read more
impl AddAssign<&'_ Ratio<i32>> for Big
[src]
impl AddAssign<&'_ Ratio<i32>> for Big
[src]fn add_assign(&mut self, rhs: &Rational32)
[src]
fn add_assign(&mut self, rhs: &Rational32)
[src]Performs the +=
operation. Read more
impl AddAssign<&'_ Ratio<i64>> for Big
[src]
impl AddAssign<&'_ Ratio<i64>> for Big
[src]fn add_assign(&mut self, rhs: &Rational64)
[src]
fn add_assign(&mut self, rhs: &Rational64)
[src]Performs the +=
operation. Read more
impl AddAssign<Big> for Big
[src]
impl AddAssign<Big> for Big
[src]fn add_assign(&mut self, rhs: Self)
[src]
fn add_assign(&mut self, rhs: Self)
[src]Performs the +=
operation. Read more
impl AddAssign<Ratio<i128>> for Big
[src]
impl AddAssign<Ratio<i128>> for Big
[src]fn add_assign(&mut self, rhs: Rational128)
[src]
fn add_assign(&mut self, rhs: Rational128)
[src]Performs the +=
operation. Read more
impl AddAssign<Ratio<i32>> for Big
[src]
impl AddAssign<Ratio<i32>> for Big
[src]fn add_assign(&mut self, rhs: Rational32)
[src]
fn add_assign(&mut self, rhs: Rational32)
[src]Performs the +=
operation. Read more
impl AddAssign<Ratio<i64>> for Big
[src]
impl AddAssign<Ratio<i64>> for Big
[src]fn add_assign(&mut self, rhs: Rational64)
[src]
fn add_assign(&mut self, rhs: Rational64)
[src]Performs the +=
operation. Read more
impl DivAssign<&'_ Big> for Big
[src]
impl DivAssign<&'_ Big> for Big
[src]fn div_assign(&mut self, rhs: &Self)
[src]
fn div_assign(&mut self, rhs: &Self)
[src]Performs the /=
operation. Read more
impl DivAssign<Big> for Big
[src]
impl DivAssign<Big> for Big
[src]fn div_assign(&mut self, rhs: Self)
[src]
fn div_assign(&mut self, rhs: Self)
[src]Performs the /=
operation. Read more
impl From<&'_ Binary> for RationalBig
[src]
impl From<&'_ Binary> for RationalBig
[src]impl From<&'_ Ratio<i128>> for Big
[src]
impl From<&'_ Ratio<i128>> for Big
[src]fn from(value: &Rational128) -> Self
[src]
fn from(value: &Rational128) -> Self
[src]Performs the conversion.
impl From<&'_ Ratio<i32>> for Big
[src]
impl From<&'_ Ratio<i32>> for Big
[src]fn from(value: &Rational32) -> Self
[src]
fn from(value: &Rational32) -> Self
[src]Performs the conversion.
impl From<&'_ Ratio<i64>> for Big
[src]
impl From<&'_ Ratio<i64>> for Big
[src]fn from(value: &Rational64) -> Self
[src]
fn from(value: &Rational64) -> Self
[src]Performs the conversion.
impl FromPrimitive for Big
[src]
impl FromPrimitive for Big
[src]fn from_i64(n: i64) -> Option<Self>
[src]
fn from_i64(n: i64) -> Option<Self>
[src]Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u64(n: u64) -> Option<Self>
[src]
fn from_u64(n: u64) -> Option<Self>
[src]Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_f32(n: f32) -> Option<Self>
[src]
fn from_f32(n: f32) -> Option<Self>
[src]Converts a f32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_f64(n: f64) -> Option<Self>
[src]
fn from_f64(n: f64) -> Option<Self>
[src]Converts a f64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_isize(n: isize) -> Option<Self>
[src]Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
[src]Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
[src]Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
[src]Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i128(n: i128) -> Option<Self>
[src]
fn from_i128(n: i128) -> Option<Self>
[src]Converts an i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
[src]Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
[src]Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
[src]Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
impl Mul<&'_ Binary> for RationalBig
[src]
impl Mul<&'_ Binary> for RationalBig
[src]impl Mul<&'_ Binary> for &RationalBig
[src]
impl Mul<&'_ Binary> for &RationalBig
[src]impl MulAssign<&'_ Big> for Big
[src]
impl MulAssign<&'_ Big> for Big
[src]fn mul_assign(&mut self, rhs: &Self)
[src]
fn mul_assign(&mut self, rhs: &Self)
[src]Performs the *=
operation. Read more
impl MulAssign<Big> for Big
[src]
impl MulAssign<Big> for Big
[src]fn mul_assign(&mut self, rhs: Self)
[src]
fn mul_assign(&mut self, rhs: Self)
[src]Performs the *=
operation. Read more
impl Ord for Big
[src]
impl Ord for Big
[src]impl PartialOrd<Big> for Big
[src]
impl PartialOrd<Big> for Big
[src]fn partial_cmp(&self, other: &Big) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Big) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl SubAssign<&'_ Big> for Big
[src]
impl SubAssign<&'_ Big> for Big
[src]fn sub_assign(&mut self, rhs: &Self)
[src]
fn sub_assign(&mut self, rhs: &Self)
[src]Performs the -=
operation. Read more
impl SubAssign<Big> for Big
[src]
impl SubAssign<Big> for Big
[src]fn sub_assign(&mut self, rhs: Self)
[src]
fn sub_assign(&mut self, rhs: Self)
[src]Performs the -=
operation. Read more
impl Eq for Big
[src]
impl StructuralEq for Big
[src]
impl StructuralPartialEq for Big
[src]
Auto Trait Implementations
impl RefUnwindSafe for Big
impl Send for Big
impl Sync for Big
impl Unpin for Big
impl UnwindSafe for Big
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> NotZero for T where
T: Zero,
[src]
impl<T> NotZero for T where
T: Zero,
[src]pub fn is_not_zero(&Self) -> bool
[src]
pub fn is_not_zero(&Self) -> bool
[src]Whether the value is not equal to zero.
impl<T> NotZeroSigned for T where
T: Zero + NotZero + Neg<Output = T> + PartialOrd<T> + Clone,
[src]
impl<T> NotZeroSigned for T where
T: Zero + NotZero + Neg<Output = T> + PartialOrd<T> + Clone,
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more