Enum rustc_const_math::ConstFloat
[−]
[src]
pub enum ConstFloat {
F32(f32),
F64(f64),
}rustc_private)Variants
F32(f32)rustc_private)F64(f64)rustc_private)Methods
impl ConstFloat[src]
fn description(&self) -> &'static str
rustc_private)Description of the type, not the value
fn is_nan(&self) -> bool
rustc_private)fn try_cmp(self, rhs: Self) -> Result<Ordering, ConstMathErr>
rustc_private)Compares the values if they are of the same type
Trait Implementations
impl Copy for ConstFloat[src]
impl Clone for ConstFloat[src]
fn clone(&self) -> ConstFloat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for ConstFloat[src]
impl Encodable for ConstFloat[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for ConstFloat[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ConstFloat, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io
impl PartialEq for ConstFloat[src]
Note that equality for ConstFloat means that the it is the same
constant, not that the rust values are equal. In particular, NaN == NaN (at least if it's the same NaN; distinct encodings for NaN
are considering unequal).
fn eq(&self, other: &Self) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for ConstFloat[src]
impl Hash for ConstFloat[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Display for ConstFloat[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Add for ConstFloat[src]
type Output = Result<Self, ConstMathErr>
The resulting type after applying the + operator
fn add(self, rhs: Self) -> Result<Self, ConstMathErr>
The method for the + operator
impl Sub for ConstFloat[src]
type Output = Result<Self, ConstMathErr>
The resulting type after applying the - operator
fn sub(self, rhs: Self) -> Result<Self, ConstMathErr>
The method for the - operator
impl Mul for ConstFloat[src]
type Output = Result<Self, ConstMathErr>
The resulting type after applying the * operator
fn mul(self, rhs: Self) -> Result<Self, ConstMathErr>
The method for the * operator
impl Div for ConstFloat[src]
type Output = Result<Self, ConstMathErr>
The resulting type after applying the / operator
fn div(self, rhs: Self) -> Result<Self, ConstMathErr>
The method for the / operator
impl Rem for ConstFloat[src]
type Output = Result<Self, ConstMathErr>
The resulting type after applying the % operator
fn rem(self, rhs: Self) -> Result<Self, ConstMathErr>
The method for the % operator