[−][src]Enum parsley::Num
A numeric type that adapts its precision based on its usage.
Variants
Float(f64)
Int(isize)
Methods
impl Num
[src]
impl Num
pub fn abs(self) -> Self | [src] |
pub fn pow<T>(self, other: T) -> Self where | [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 | [src] |
pub fn hypot<T>(self, other: T) -> Self where | [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 | [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<isize> for Num
impl From<i32> for Num
[src]
impl From<i32> for Num
impl From<usize> for Num
[src]
impl From<usize> for Num
impl From<f32> for Num
[src]
impl From<f32> for Num
impl From<f64> for Num
[src]
impl From<f64> for Num
impl From<Num> for usize
[src]
impl From<Num> for usize
impl From<Num> for f64
[src]
impl From<Num> for f64
impl PartialOrd<Num> for Num
[src]
impl PartialOrd<Num> for Num
fn partial_cmp(&self, other: &Num) -> Option<Ordering> | [src] |
fn lt(&self, other: &Num) -> bool | [src] |
fn le(&self, other: &Num) -> bool | [src] |
fn gt(&self, other: &Num) -> bool | [src] |
fn ge(&self, other: &Num) -> bool | [src] |
impl Copy for Num
[src]
impl Copy for Num
impl PartialEq<Num> for Num
[src]
impl PartialEq<Num> for Num
fn eq(&self, other: &Self) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl Clone for Num
[src]
impl Clone for Num
fn clone(&self) -> 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 Debug for Num
impl Display for Num
[src]
impl Display for Num
impl<T> Add<T> for Num where
Num: From<T>,
[src]
impl<T> Add<T> for Num where
Num: From<T>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: T) -> Self::Output | [src] |
impl<T> Sub<T> for Num where
Num: From<T>,
[src]
impl<T> Sub<T> for Num where
Num: From<T>,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: T) -> Self::Output | [src] |
impl<T> Mul<T> for Num where
Num: From<T>,
[src]
impl<T> Mul<T> for Num where
Num: From<T>,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: T) -> Self::Output | [src] |
impl<T> Div<T> for Num where
Num: From<T>,
[src]
impl<T> Div<T> for Num where
Num: From<T>,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: T) -> Self::Output | [src] |
impl<T> Rem<T> for Num where
Num: From<T>,
[src]
impl<T> Rem<T> for Num where
Num: From<T>,
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, other: T) -> Self::Output | [src] |
impl Neg for Num
[src]
impl Neg for Num
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output | [src] |
impl FromStr for Num
[src]
impl FromStr for Num
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |