Struct algebraics::algebraic_numbers::RealAlgebraicNumber
source · [−]pub struct RealAlgebraicNumber { /* private fields */ }
Implementations
sourceimpl RealAlgebraicNumber
impl RealAlgebraicNumber
pub fn new_unchecked(
minimal_polynomial: Polynomial<BigInt>,
interval: DyadicFractionInterval
) -> Self
pub fn minimal_polynomial(&self) -> &Polynomial<BigInt>
pub fn data(&self) -> &RealAlgebraicNumberData
pub fn into_data(self) -> RealAlgebraicNumberData
pub fn degree(&self) -> usize
pub fn is_rational(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn to_rational(&self) -> Option<Ratio<BigInt>>
pub fn to_integer(&self) -> Option<BigInt>
pub fn interval(&self) -> &DyadicFractionInterval
pub fn into_integer_floor(self) -> BigInt
pub fn to_integer_floor(&self) -> BigInt
pub fn into_floor(self) -> Self
pub fn floor(&self) -> Self
sourcepub fn into_fract(self) -> Self
pub fn into_fract(self) -> Self
returns self - self.floor()
pub fn into_integer_ceil(self) -> BigInt
pub fn to_integer_ceil(&self) -> BigInt
pub fn into_ceil(self) -> Self
pub fn ceil(&self) -> Self
pub fn cmp_with_zero(&self) -> Ordering
pub fn into_integer_trunc(self) -> BigInt
pub fn to_integer_trunc(&self) -> BigInt
pub fn into_trunc(self) -> Self
pub fn trunc(&self) -> Self
pub fn checked_recip(&self) -> Option<Self>
pub fn recip(&self) -> Self
pub fn negative_one() -> Self
pub fn set_negative_one(&mut self)
pub fn is_negative_one(&self) -> bool
pub fn checked_into_pow<E: IntoRationalExponent>(
self,
exponent: E
) -> Option<Self>
pub fn checked_pow<E: IntoRationalExponent>(&self, exponent: E) -> Option<Self>
sourcepub fn to_integer_log2(&self) -> Option<i64>
pub fn to_integer_log2(&self) -> Option<i64>
returns Some(log2(self))
if self is a power of 2, otherwise None
sourcepub fn into_checked_floor_log2(self) -> Option<i64>
pub fn into_checked_floor_log2(self) -> Option<i64>
returns Some(floor(log2(self)))
if self
is positive, otherwise None
sourcepub fn checked_floor_log2(&self) -> Option<i64>
pub fn checked_floor_log2(&self) -> Option<i64>
returns Some(floor(log2(self)))
if self
is positive, otherwise None
sourcepub fn into_checked_ceil_log2(self) -> Option<i64>
pub fn into_checked_ceil_log2(self) -> Option<i64>
returns Some(ceil(log2(self)))
if self
is positive, otherwise None
sourcepub fn checked_ceil_log2(&self) -> Option<i64>
pub fn checked_ceil_log2(&self) -> Option<i64>
returns Some(floor(log2(self)))
if self
is positive, otherwise None
Trait Implementations
sourceimpl Add<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl Add<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the +
operator.
sourcefn add(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn add(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the +
operation. Read more
sourceimpl<'a, 'b> Add<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
impl<'a, 'b> Add<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the +
operator.
sourcefn add(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn add(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the +
operation. Read more
sourceimpl Add<RealAlgebraicNumber> for RealAlgebraicNumber
impl Add<RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the +
operator.
sourcefn add(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn add(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the +
operation. Read more
sourceimpl Add<RealAlgebraicNumber> for &RealAlgebraicNumber
impl Add<RealAlgebraicNumber> for &RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the +
operator.
sourcefn add(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn add(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the +
operation. Read more
sourceimpl AddAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl AddAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn add_assign(&mut self, rhs: &RealAlgebraicNumber)
fn add_assign(&mut self, rhs: &RealAlgebraicNumber)
Performs the +=
operation. Read more
sourceimpl AddAssign<RealAlgebraicNumber> for RealAlgebraicNumber
impl AddAssign<RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn add_assign(&mut self, rhs: RealAlgebraicNumber)
fn add_assign(&mut self, rhs: RealAlgebraicNumber)
Performs the +=
operation. Read more
sourceimpl Clone for RealAlgebraicNumber
impl Clone for RealAlgebraicNumber
sourcefn clone(&self) -> RealAlgebraicNumber
fn clone(&self) -> RealAlgebraicNumber
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RealAlgebraicNumber
impl Debug for RealAlgebraicNumber
sourceimpl Div<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl Div<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the /
operator.
sourcefn div(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn div(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the /
operation. Read more
sourceimpl<'a, 'b> Div<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
impl<'a, 'b> Div<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the /
operator.
sourcefn div(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn div(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the /
operation. Read more
sourceimpl Div<RealAlgebraicNumber> for RealAlgebraicNumber
impl Div<RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the /
operator.
sourcefn div(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn div(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the /
operation. Read more
sourceimpl Div<RealAlgebraicNumber> for &RealAlgebraicNumber
impl Div<RealAlgebraicNumber> for &RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the /
operator.
sourcefn div(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn div(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the /
operation. Read more
sourceimpl DivAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl DivAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn div_assign(&mut self, rhs: &RealAlgebraicNumber)
fn div_assign(&mut self, rhs: &RealAlgebraicNumber)
Performs the /=
operation. Read more
sourceimpl DivAssign<RealAlgebraicNumber> for RealAlgebraicNumber
impl DivAssign<RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn div_assign(&mut self, rhs: RealAlgebraicNumber)
fn div_assign(&mut self, rhs: RealAlgebraicNumber)
Performs the /=
operation. Read more
sourceimpl ExactDiv<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl ExactDiv<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
fn checked_exact_div(
self,
rhs: &RealAlgebraicNumber
) -> Option<RealAlgebraicNumber>
fn exact_div(self, rhs: Rhs) -> Self::Output
sourceimpl<'a, 'b> ExactDiv<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
impl<'a, 'b> ExactDiv<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
type Output = RealAlgebraicNumber
fn checked_exact_div(
self,
rhs: &RealAlgebraicNumber
) -> Option<RealAlgebraicNumber>
fn exact_div(self, rhs: Rhs) -> Self::Output
sourceimpl ExactDiv<RealAlgebraicNumber> for RealAlgebraicNumber
impl ExactDiv<RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
fn checked_exact_div(
self,
rhs: RealAlgebraicNumber
) -> Option<RealAlgebraicNumber>
fn exact_div(self, rhs: Rhs) -> Self::Output
sourceimpl ExactDiv<RealAlgebraicNumber> for &RealAlgebraicNumber
impl ExactDiv<RealAlgebraicNumber> for &RealAlgebraicNumber
type Output = RealAlgebraicNumber
fn checked_exact_div(
self,
rhs: RealAlgebraicNumber
) -> Option<RealAlgebraicNumber>
fn exact_div(self, rhs: Rhs) -> Self::Output
sourceimpl ExactDivAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl ExactDivAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
fn checked_exact_div_assign(
&mut self,
rhs: &RealAlgebraicNumber
) -> Result<(), ()>
fn exact_div_assign(&mut self, rhs: Rhs)
sourceimpl ExactDivAssign<RealAlgebraicNumber> for RealAlgebraicNumber
impl ExactDivAssign<RealAlgebraicNumber> for RealAlgebraicNumber
fn checked_exact_div_assign(
&mut self,
rhs: RealAlgebraicNumber
) -> Result<(), ()>
fn exact_div_assign(&mut self, rhs: Rhs)
sourceimpl From<BigInt> for RealAlgebraicNumber
impl From<BigInt> for RealAlgebraicNumber
sourceimpl From<BigUint> for RealAlgebraicNumber
impl From<BigUint> for RealAlgebraicNumber
sourceimpl From<Ratio<BigInt>> for RealAlgebraicNumber
impl From<Ratio<BigInt>> for RealAlgebraicNumber
sourceimpl From<Ratio<BigUint>> for RealAlgebraicNumber
impl From<Ratio<BigUint>> for RealAlgebraicNumber
sourceimpl From<Ratio<i128>> for RealAlgebraicNumber
impl From<Ratio<i128>> for RealAlgebraicNumber
sourceimpl From<Ratio<i16>> for RealAlgebraicNumber
impl From<Ratio<i16>> for RealAlgebraicNumber
sourceimpl From<Ratio<i32>> for RealAlgebraicNumber
impl From<Ratio<i32>> for RealAlgebraicNumber
sourceimpl From<Ratio<i64>> for RealAlgebraicNumber
impl From<Ratio<i64>> for RealAlgebraicNumber
sourceimpl From<Ratio<i8>> for RealAlgebraicNumber
impl From<Ratio<i8>> for RealAlgebraicNumber
sourceimpl From<Ratio<isize>> for RealAlgebraicNumber
impl From<Ratio<isize>> for RealAlgebraicNumber
sourceimpl From<Ratio<u128>> for RealAlgebraicNumber
impl From<Ratio<u128>> for RealAlgebraicNumber
sourceimpl From<Ratio<u16>> for RealAlgebraicNumber
impl From<Ratio<u16>> for RealAlgebraicNumber
sourceimpl From<Ratio<u32>> for RealAlgebraicNumber
impl From<Ratio<u32>> for RealAlgebraicNumber
sourceimpl From<Ratio<u64>> for RealAlgebraicNumber
impl From<Ratio<u64>> for RealAlgebraicNumber
sourceimpl From<Ratio<u8>> for RealAlgebraicNumber
impl From<Ratio<u8>> for RealAlgebraicNumber
sourceimpl From<Ratio<usize>> for RealAlgebraicNumber
impl From<Ratio<usize>> for RealAlgebraicNumber
sourceimpl From<i128> for RealAlgebraicNumber
impl From<i128> for RealAlgebraicNumber
sourceimpl From<i16> for RealAlgebraicNumber
impl From<i16> for RealAlgebraicNumber
sourceimpl From<i32> for RealAlgebraicNumber
impl From<i32> for RealAlgebraicNumber
sourceimpl From<i64> for RealAlgebraicNumber
impl From<i64> for RealAlgebraicNumber
sourceimpl From<i8> for RealAlgebraicNumber
impl From<i8> for RealAlgebraicNumber
sourceimpl From<isize> for RealAlgebraicNumber
impl From<isize> for RealAlgebraicNumber
sourceimpl From<u128> for RealAlgebraicNumber
impl From<u128> for RealAlgebraicNumber
sourceimpl From<u16> for RealAlgebraicNumber
impl From<u16> for RealAlgebraicNumber
sourceimpl From<u32> for RealAlgebraicNumber
impl From<u32> for RealAlgebraicNumber
sourceimpl From<u64> for RealAlgebraicNumber
impl From<u64> for RealAlgebraicNumber
sourceimpl From<u8> for RealAlgebraicNumber
impl From<u8> for RealAlgebraicNumber
sourceimpl From<usize> for RealAlgebraicNumber
impl From<usize> for RealAlgebraicNumber
sourceimpl Mul<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl Mul<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn mul(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the *
operation. Read more
sourceimpl<'a, 'b> Mul<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
impl<'a, 'b> Mul<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn mul(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the *
operation. Read more
sourceimpl Mul<RealAlgebraicNumber> for RealAlgebraicNumber
impl Mul<RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn mul(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the *
operation. Read more
sourceimpl Mul<RealAlgebraicNumber> for &RealAlgebraicNumber
impl Mul<RealAlgebraicNumber> for &RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn mul(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the *
operation. Read more
sourceimpl MulAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl MulAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn mul_assign(&mut self, rhs: &RealAlgebraicNumber)
fn mul_assign(&mut self, rhs: &RealAlgebraicNumber)
Performs the *=
operation. Read more
sourceimpl MulAssign<RealAlgebraicNumber> for RealAlgebraicNumber
impl MulAssign<RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn mul_assign(&mut self, rhs: RealAlgebraicNumber)
fn mul_assign(&mut self, rhs: RealAlgebraicNumber)
Performs the *=
operation. Read more
sourceimpl Neg for &RealAlgebraicNumber
impl Neg for &RealAlgebraicNumber
sourceimpl Neg for RealAlgebraicNumber
impl Neg for RealAlgebraicNumber
sourceimpl Num for RealAlgebraicNumber
impl Num for RealAlgebraicNumber
type FromStrRadixErr = RealAlgebraicNumberParseError
sourcefn from_str_radix(
_str: &str,
_radix: u32
) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(
_str: &str,
_radix: u32
) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically 2..=36
). Read more
sourceimpl One for RealAlgebraicNumber
impl One for RealAlgebraicNumber
sourceimpl Ord for RealAlgebraicNumber
impl Ord for RealAlgebraicNumber
sourceimpl PartialOrd<RealAlgebraicNumber> for RealAlgebraicNumber
impl PartialOrd<RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn partial_cmp(&self, rhs: &RealAlgebraicNumber) -> Option<Ordering>
fn partial_cmp(&self, rhs: &RealAlgebraicNumber) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<E: IntoRationalExponent> Pow<E> for RealAlgebraicNumber
impl<E: IntoRationalExponent> Pow<E> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The result after applying the operator.
sourcefn pow(self, exponent: E) -> RealAlgebraicNumber
fn pow(self, exponent: E) -> RealAlgebraicNumber
Returns self
to the power rhs
. Read more
sourceimpl<E: IntoRationalExponent> Pow<E> for &RealAlgebraicNumber
impl<E: IntoRationalExponent> Pow<E> for &RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The result after applying the operator.
sourcefn pow(self, exponent: E) -> RealAlgebraicNumber
fn pow(self, exponent: E) -> RealAlgebraicNumber
Returns self
to the power rhs
. Read more
sourceimpl Rem<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl Rem<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the %
operator.
sourcefn rem(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn rem(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the %
operation. Read more
sourceimpl<'a, 'b> Rem<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
impl<'a, 'b> Rem<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the %
operator.
sourcefn rem(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn rem(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the %
operation. Read more
sourceimpl Rem<RealAlgebraicNumber> for RealAlgebraicNumber
impl Rem<RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the %
operator.
sourcefn rem(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn rem(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the %
operation. Read more
sourceimpl Rem<RealAlgebraicNumber> for &RealAlgebraicNumber
impl Rem<RealAlgebraicNumber> for &RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the %
operator.
sourcefn rem(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn rem(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the %
operation. Read more
sourceimpl RemAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl RemAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn rem_assign(&mut self, rhs: &RealAlgebraicNumber)
fn rem_assign(&mut self, rhs: &RealAlgebraicNumber)
Performs the %=
operation. Read more
sourceimpl RemAssign<RealAlgebraicNumber> for RealAlgebraicNumber
impl RemAssign<RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn rem_assign(&mut self, rhs: RealAlgebraicNumber)
fn rem_assign(&mut self, rhs: RealAlgebraicNumber)
Performs the %=
operation. Read more
sourceimpl Signed for RealAlgebraicNumber
impl Signed for RealAlgebraicNumber
sourcefn signum(&self) -> Self
fn signum(&self) -> Self
Returns the sign of the number.
0
if the number is zero1
if the number is positive-1
if the number is negative
sourcefn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Returns true if the number is positive and false if the number is zero or negative.
sourcefn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Returns true if the number is negative and false if the number is zero or positive.
sourceimpl Sub<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl Sub<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn sub(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the -
operation. Read more
sourceimpl<'a, 'b> Sub<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
impl<'a, 'b> Sub<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
fn sub(self, rhs: &RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the -
operation. Read more
sourceimpl Sub<RealAlgebraicNumber> for RealAlgebraicNumber
impl Sub<RealAlgebraicNumber> for RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn sub(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the -
operation. Read more
sourceimpl Sub<RealAlgebraicNumber> for &RealAlgebraicNumber
impl Sub<RealAlgebraicNumber> for &RealAlgebraicNumber
type Output = RealAlgebraicNumber
type Output = RealAlgebraicNumber
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
fn sub(self, rhs: RealAlgebraicNumber) -> RealAlgebraicNumber
Performs the -
operation. Read more
sourceimpl SubAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl SubAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn sub_assign(&mut self, rhs: &RealAlgebraicNumber)
fn sub_assign(&mut self, rhs: &RealAlgebraicNumber)
Performs the -=
operation. Read more
sourceimpl SubAssign<RealAlgebraicNumber> for RealAlgebraicNumber
impl SubAssign<RealAlgebraicNumber> for RealAlgebraicNumber
sourcefn sub_assign(&mut self, rhs: RealAlgebraicNumber)
fn sub_assign(&mut self, rhs: RealAlgebraicNumber)
Performs the -=
operation. Read more
sourceimpl Zero for RealAlgebraicNumber
impl Zero for RealAlgebraicNumber
impl AlwaysExactDiv<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl<'a, 'b> AlwaysExactDiv<&'a RealAlgebraicNumber> for &'b RealAlgebraicNumber
impl AlwaysExactDiv<RealAlgebraicNumber> for RealAlgebraicNumber
impl AlwaysExactDiv<RealAlgebraicNumber> for &RealAlgebraicNumber
impl AlwaysExactDivAssign<&'_ RealAlgebraicNumber> for RealAlgebraicNumber
impl AlwaysExactDivAssign<RealAlgebraicNumber> for RealAlgebraicNumber
impl Eq for RealAlgebraicNumber
Auto Trait Implementations
impl RefUnwindSafe for RealAlgebraicNumber
impl Send for RealAlgebraicNumber
impl Sync for RealAlgebraicNumber
impl Unpin for RealAlgebraicNumber
impl UnwindSafe for RealAlgebraicNumber
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more