#[repr(C)]pub struct __mpq_struct {
pub _mp_num: __mpz_struct,
pub _mp_den: __mpz_struct,
}Expand description
__mpq_struct
Fields§
§_mp_num: __mpz_struct_mp_num
_mp_den: __mpz_struct_mp_den
Implementations§
Source§impl __mpq_struct
impl mpq_s
impl __mpq_struct
impl mpq_s
Sourcepub fn mul_2exp(&mut self, n: mp_bitcnt_t) -> &mut Self
pub fn mul_2exp(&mut self, n: mp_bitcnt_t) -> &mut Self
mul_2exp self *= 2**n
Sourcepub fn div_2exp(&mut self, n: mp_bitcnt_t) -> &mut Self
pub fn div_2exp(&mut self, n: mp_bitcnt_t) -> &mut Self
div_2exp self /= 2**n
Trait Implementations§
Source§impl<'a, 'b> Add<&'b __mpq_struct> for &'a mpq_s
impl Add for mpq_r
impl<'a, 'b> Add<&'b __mpq_struct> for &'a mpq_s
impl Add for mpq_r
Source§impl<'a> Add<&'a __mpq_struct> for mpq_s
impl ‘$imp’<‘&$u’$gt; for ‘$t’
impl<'a> Add<&'a __mpq_struct> for mpq_s
impl ‘$imp’<‘&$u’$gt; for ‘$t’
Source§impl<'a, 'b> Add<&'b mut __mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘&mut $u’$gt; for ‘&mut $t’
impl<'a, 'b> Add<&'b mut __mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘&mut $u’$gt; for ‘&mut $t’
Source§impl<'a> Add<__mpq_struct> for &'a mpq_s
impl ‘$imp’<‘$u’$gt; for ‘&$t’
impl<'a> Add<__mpq_struct> for &'a mpq_s
impl ‘$imp’<‘$u’$gt; for ‘&$t’
Source§impl<'a> AddAssign<&'a __mpq_struct> for mpq_s
impl AddAssign for mpq_s
impl<'a> AddAssign<&'a __mpq_struct> for mpq_s
impl AddAssign for mpq_s
Source§fn add_assign(&mut self, rhs: &'a Self)
fn add_assign(&mut self, rhs: &'a Self)
add_assign mpq_s += mpq_r
Source§impl<'a> AddAssign<__mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘$u’> for &mut ‘$t’
impl<'a> AddAssign<__mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘$u’> for &mut ‘$t’
Source§fn add_assign(&mut self, rhs: mpq_s)
fn add_assign(&mut self, rhs: mpq_s)
‘$imp’ &mut ‘$t’ ‘$u’
Source§impl Debug for __mpq_struct
impl Debug
impl Debug for __mpq_struct
impl Debug
Source§impl Display for __mpq_struct
impl Display
impl Display for __mpq_struct
impl Display
Source§impl<'a, 'b> Div<&'b __mpq_struct> for &'a mpq_s
impl Div for mpq_r
impl<'a, 'b> Div<&'b __mpq_struct> for &'a mpq_s
impl Div for mpq_r
Source§impl<'a> Div<&'a __mpq_struct> for mpq_s
impl ‘$imp’<‘&$u’$gt; for ‘$t’
impl<'a> Div<&'a __mpq_struct> for mpq_s
impl ‘$imp’<‘&$u’$gt; for ‘$t’
Source§impl<'a, 'b> Div<&'b mut __mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘&mut $u’$gt; for ‘&mut $t’
impl<'a, 'b> Div<&'b mut __mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘&mut $u’$gt; for ‘&mut $t’
Source§impl<'a> Div<__mpq_struct> for &'a mpq_s
impl ‘$imp’<‘$u’$gt; for ‘&$t’
impl<'a> Div<__mpq_struct> for &'a mpq_s
impl ‘$imp’<‘$u’$gt; for ‘&$t’
Source§impl<'a> DivAssign<&'a __mpq_struct> for mpq_s
impl DivAssign for mpq_s
impl<'a> DivAssign<&'a __mpq_struct> for mpq_s
impl DivAssign for mpq_s
Source§fn div_assign(&mut self, rhs: &'a Self)
fn div_assign(&mut self, rhs: &'a Self)
div_assign mpq_s /= mpq_r
Source§impl<'a> DivAssign<__mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘$u’> for &mut ‘$t’
impl<'a> DivAssign<__mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘$u’> for &mut ‘$t’
Source§fn div_assign(&mut self, rhs: mpq_s)
fn div_assign(&mut self, rhs: mpq_s)
‘$imp’ &mut ‘$t’ ‘$u’
Source§impl Drop for __mpq_struct
impl Drop
impl Drop for __mpq_struct
impl Drop
Source§impl<'a, 'b> Mul<&'b __mpq_struct> for &'a mpq_s
impl Mul for mpq_r
impl<'a, 'b> Mul<&'b __mpq_struct> for &'a mpq_s
impl Mul for mpq_r
Source§impl<'a> Mul<&'a __mpq_struct> for mpq_s
impl ‘$imp’<‘&$u’$gt; for ‘$t’
impl<'a> Mul<&'a __mpq_struct> for mpq_s
impl ‘$imp’<‘&$u’$gt; for ‘$t’
Source§impl<'a, 'b> Mul<&'b mut __mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘&mut $u’$gt; for ‘&mut $t’
impl<'a, 'b> Mul<&'b mut __mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘&mut $u’$gt; for ‘&mut $t’
Source§impl<'a> Mul<__mpq_struct> for &'a mpq_s
impl ‘$imp’<‘$u’$gt; for ‘&$t’
impl<'a> Mul<__mpq_struct> for &'a mpq_s
impl ‘$imp’<‘$u’$gt; for ‘&$t’
Source§impl<'a> MulAssign<&'a __mpq_struct> for mpq_s
impl MulAssign for mpq_s
impl<'a> MulAssign<&'a __mpq_struct> for mpq_s
impl MulAssign for mpq_s
Source§fn mul_assign(&mut self, rhs: &'a Self)
fn mul_assign(&mut self, rhs: &'a Self)
mul_assign mpq_s *= mpq_r
Source§impl<'a> MulAssign<__mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘$u’> for &mut ‘$t’
impl<'a> MulAssign<__mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘$u’> for &mut ‘$t’
Source§fn mul_assign(&mut self, rhs: mpq_s)
fn mul_assign(&mut self, rhs: mpq_s)
‘$imp’ &mut ‘$t’ ‘$u’
Source§impl SNew for __mpq_struct
impl SNew
impl SNew for __mpq_struct
impl SNew
Source§impl<'a, 'b> Sub<&'b __mpq_struct> for &'a mpq_s
impl Sub for mpq_r
impl<'a, 'b> Sub<&'b __mpq_struct> for &'a mpq_s
impl Sub for mpq_r
Source§impl<'a> Sub<&'a __mpq_struct> for mpq_s
impl ‘$imp’<‘&$u’$gt; for ‘$t’
impl<'a> Sub<&'a __mpq_struct> for mpq_s
impl ‘$imp’<‘&$u’$gt; for ‘$t’
Source§impl<'a, 'b> Sub<&'b mut __mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘&mut $u’$gt; for ‘&mut $t’
impl<'a, 'b> Sub<&'b mut __mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘&mut $u’$gt; for ‘&mut $t’
Source§impl<'a> Sub<__mpq_struct> for &'a mpq_s
impl ‘$imp’<‘$u’$gt; for ‘&$t’
impl<'a> Sub<__mpq_struct> for &'a mpq_s
impl ‘$imp’<‘$u’$gt; for ‘&$t’
Source§impl<'a> SubAssign<&'a __mpq_struct> for mpq_s
impl SubAssign for mpq_s
impl<'a> SubAssign<&'a __mpq_struct> for mpq_s
impl SubAssign for mpq_s
Source§fn sub_assign(&mut self, rhs: &'a Self)
fn sub_assign(&mut self, rhs: &'a Self)
sub_assign mpq_s -= mpq_r
Source§impl<'a> SubAssign<__mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘$u’> for &mut ‘$t’
impl<'a> SubAssign<__mpq_struct> for &'a mut mpq_s
impl ‘$imp’<‘$u’> for &mut ‘$t’
Source§fn sub_assign(&mut self, rhs: mpq_s)
fn sub_assign(&mut self, rhs: mpq_s)
‘$imp’ &mut ‘$t’ ‘$u’