Struct cretonne::prelude::Ieee64 [−][src]
pub struct Ieee64(_);
An IEEE binary64 immediate floating point value, represented as a u64 containing the bit pattern.
All bit patterns are allowed.
Methods
impl Ieee64
[src]
impl Ieee64
pub fn with_bits(x: u64) -> Ieee64
[src]
pub fn with_bits(x: u64) -> Ieee64
Create a new Ieee64
containing the bits of x
.
pub fn pow2<I>(n: I) -> Ieee64 where
I: Into<i64>,
[src]
pub fn pow2<I>(n: I) -> Ieee64 where
I: Into<i64>,
Create an Ieee64
number representing 2.0^n
.
pub fn fcvt_to_sint_negative_overflow<I>(n: I) -> Ieee64 where
I: Into<i64>,
[src]
pub fn fcvt_to_sint_negative_overflow<I>(n: I) -> Ieee64 where
I: Into<i64>,
Create an Ieee64
number representing the greatest negative value
not convertable from f64 to a signed integer with width n.
pub fn neg(self) -> Ieee64
[src]
pub fn neg(self) -> Ieee64
Return self negated.
pub fn with_float(x: f64) -> Ieee64
[src]
pub fn with_float(x: f64) -> Ieee64
Create a new Ieee64
representing the number x
.
pub fn bits(self) -> u64
[src]
pub fn bits(self) -> u64
Get the bitwise representation.
Trait Implementations
impl Hash for Ieee64
[src]
impl Hash for Ieee64
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Ieee64
[src]
impl Clone for Ieee64
fn clone(&self) -> Ieee64
[src]
fn clone(&self) -> Ieee64
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl FromStr for Ieee64
[src]
impl FromStr for Ieee64
type Err = &'static str
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Ieee64, &'static str>
[src]
fn from_str(s: &str) -> Result<Ieee64, &'static str>
Parses a string s
to return a value of this type. Read more
impl Debug for Ieee64
[src]
impl Debug for Ieee64
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Display for Ieee64
[src]
impl Display for Ieee64
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for Ieee64
[src]
impl Copy for Ieee64
impl Eq for Ieee64
[src]
impl Eq for Ieee64
impl PartialEq<Ieee64> for Ieee64
[src]
impl PartialEq<Ieee64> for Ieee64