Struct rustc_const_math::ConstFloat
[−]
[src]
pub struct ConstFloat {
pub ty: FloatTy,
pub bits: u128,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
ty: FloatTy
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
bits: u128
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl ConstFloat[src]
pub fn description(&self) -> &'static str[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Description of the type, not the value
pub fn try_cmp(self, rhs: Self) -> Result<Ordering, ConstMathErr>[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Compares the values if they are of the same type
pub fn from_i128(input: i128, ty: FloatTy) -> Self[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn from_u128(input: u128, ty: FloatTy) -> Self[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn from_str(num: &str, ty: FloatTy) -> Result<Self, ParseFloatError>[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn to_i128(self, width: usize) -> Option<i128>[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn to_u128(self, width: usize) -> Option<u128>[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn convert(self, to: FloatTy) -> Self[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Copy for ConstFloat[src]
impl Clone for ConstFloat[src]
fn clone(&self) -> ConstFloat[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for ConstFloat[src]
fn eq(&self, __arg_0: &ConstFloat) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConstFloat) -> bool[src]
This method tests for !=.
impl Eq for ConstFloat[src]
impl Hash for ConstFloat[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Encodable for ConstFloat[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for ConstFloat[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ConstFloat, __D::Error>[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Display for ConstFloat[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl Debug for ConstFloat[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
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>[src]
Performs the + operation.
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>[src]
Performs the - operation.
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>[src]
Performs the * operation.
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>[src]
Performs the / operation.
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>[src]
Performs the % operation.