Enum ruschm::values::Number[][src]

pub enum Number<R: RealNumberInternalTrait> {
    Integer(i32),
    Real(R),
    Rational(i32i32),
}

Variants

Integer(i32)
Real(R)
Rational(i32i32)

Implementations

impl<R: RealNumberInternalTrait> Number<R>[src]

pub fn abs(self) -> Number<R>[src]

pub fn sqrt(self) -> Self[src]

pub fn exp(self) -> Self[src]

pub fn ln(self) -> Self[src]

pub fn log(self, base: Self) -> Self[src]

pub fn sin(self) -> Self[src]

pub fn cos(self) -> Self[src]

pub fn tan(self) -> Self[src]

pub fn asin(self) -> Self[src]

pub fn acos(self) -> Self[src]

pub fn atan(self) -> Self[src]

pub fn atan2(self, x: Self) -> Self[src]

pub fn floor(self) -> Self[src]

pub fn ceiling(self) -> Self[src]

pub fn floor_quotient(self, rhs: Self) -> Result<Self, SchemeError>[src]

pub fn floor_remainder(self, rhs: Self) -> Result<Self, SchemeError>[src]

pub fn exact(self) -> Result<Self, SchemeError>[src]

Trait Implementations

impl<R: RealNumberInternalTrait> Add<Number<R>> for Number<R>[src]

type Output = Number<R>

The resulting type after applying the + operator.

impl<R: Clone + RealNumberInternalTrait> Clone for Number<R>[src]

impl<R: Copy + RealNumberInternalTrait> Copy for Number<R>[src]

impl<R: Debug + RealNumberInternalTrait> Debug for Number<R>[src]

impl<R: RealNumberInternalTrait> Display for Number<R>[src]

impl<R: RealNumberInternalTrait> Div<Number<R>> for Number<R>[src]

type Output = Result<Number<R>, SchemeError>

The resulting type after applying the / operator.

impl<R: RealNumberInternalTrait> Mul<Number<R>> for Number<R>[src]

type Output = Number<R>

The resulting type after applying the * operator.

impl<R: RealNumberInternalTrait> PartialEq<Number<R>> for Number<R>[src]

impl<R: RealNumberInternalTrait> PartialOrd<Number<R>> for Number<R>[src]

impl<R: RealNumberInternalTrait> Sub<Number<R>> for Number<R>[src]

type Output = Number<R>

The resulting type after applying the - operator.

Auto Trait Implementations

impl<R> RefUnwindSafe for Number<R> where
    R: RefUnwindSafe

impl<R> Send for Number<R> where
    R: Send

impl<R> Sync for Number<R> where
    R: Sync

impl<R> Unpin for Number<R> where
    R: Unpin

impl<R> UnwindSafe for Number<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.