[][src]Enum parsley::Num

pub enum Num {
    Float(f64),
    Int(isize),
}

A numeric type that adapts its precision based on its usage.

Variants

Float(f64)Int(isize)

Methods

impl Num
[src]

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

pub fn pow<T>(self, other: T) -> Self where
    Self: From<T>, 
[src]

pub fn is_nan(self) -> bool
[src]

pub fn is_infinite(self) -> bool
[src]

pub fn is_finite(self) -> bool
[src]

pub fn is_sign_positive(self) -> bool
[src]

pub fn is_sign_negative(self) -> bool
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn log<T>(self, other: T) -> Self where
    Self: From<T>, 
[src]

pub fn hypot<T>(self, other: T) -> Self where
    Self: From<T>, 
[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<T>(self, other: T) -> Self where
    Self: From<T>, 
[src]

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

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

Trait Implementations

impl From<isize> for Num
[src]

impl From<i32> for Num
[src]

impl From<usize> for Num
[src]

impl From<f32> for Num
[src]

impl From<f64> for Num
[src]

impl From<Num> for usize
[src]

impl From<Num> for f64
[src]

impl PartialOrd<Num> for Num
[src]

impl Copy for Num
[src]

impl PartialEq<Num> for Num
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for Num
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Num
[src]

impl Display for Num
[src]

impl<T> Add<T> for Num where
    Num: From<T>, 
[src]

type Output = Self

The resulting type after applying the + operator.

impl<T> Sub<T> for Num where
    Num: From<T>, 
[src]

type Output = Self

The resulting type after applying the - operator.

impl<T> Mul<T> for Num where
    Num: From<T>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T> Div<T> for Num where
    Num: From<T>, 
[src]

type Output = Self

The resulting type after applying the / operator.

impl<T> Rem<T> for Num where
    Num: From<T>, 
[src]

type Output = Self

The resulting type after applying the % operator.

impl Neg for Num
[src]

type Output = Self

The resulting type after applying the - operator.

impl FromStr for Num
[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for Num

impl Sync for Num

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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