Struct rustc_const_math::ConstFloat
[−]
[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?
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]
impl ConstFloatpub fn description(&self) -> &'static str[src]
pub fn description(&self) -> &'static str🔬 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<Option<Ordering>, ConstMathErr>[src]
pub fn try_cmp(self, rhs: Self) -> Result<Option<Ordering>, ConstMathErr>🔬 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]
pub fn from_i128(input: i128, ty: FloatTy) -> Self🔬 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]
pub fn from_u128(input: u128, ty: FloatTy) -> Self🔬 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]
pub fn from_str(num: &str, ty: FloatTy) -> Result<Self, ParseFloatError>🔬 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]
pub fn to_i128(self, width: usize) -> Option<i128>🔬 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]
pub fn to_u128(self, width: usize) -> Option<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?
pub fn convert(self, to: FloatTy) -> Self[src]
pub fn convert(self, to: FloatTy) -> Self🔬 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 Copy for ConstFloatimpl Clone for ConstFloat[src]
impl Clone for ConstFloatfn clone(&self) -> ConstFloat[src]
fn clone(&self) -> ConstFloatReturns 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 PartialEq for ConstFloat[src]
impl PartialEq for ConstFloatfn eq(&self, __arg_0: &ConstFloat) -> bool[src]
fn eq(&self, __arg_0: &ConstFloat) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConstFloat) -> bool[src]
fn ne(&self, __arg_0: &ConstFloat) -> boolThis method tests for !=.
impl Eq for ConstFloat[src]
impl Eq for ConstFloatimpl Hash for ConstFloat[src]
impl Hash for ConstFloatfn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)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 Encodable for ConstFloat[src]
impl Encodable for ConstFloatfn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>🔬 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]
impl Decodable for ConstFloatfn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ConstFloat, __D::Error>[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ConstFloat, __D::Error>🔬 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]
impl Display for ConstFloatfn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Debug for ConstFloat[src]
impl Debug for ConstFloatfn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Add for ConstFloat[src]
impl Add for ConstFloattype Output = Result<Self, ConstMathErr>
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Result<Self, ConstMathErr>[src]
fn add(self, rhs: Self) -> Result<Self, ConstMathErr>Performs the + operation.
impl Sub for ConstFloat[src]
impl Sub for ConstFloattype Output = Result<Self, ConstMathErr>
The resulting type after applying the - operator.
fn sub(self, rhs: Self) -> Result<Self, ConstMathErr>[src]
fn sub(self, rhs: Self) -> Result<Self, ConstMathErr>Performs the - operation.
impl Mul for ConstFloat[src]
impl Mul for ConstFloattype Output = Result<Self, ConstMathErr>
The resulting type after applying the * operator.
fn mul(self, rhs: Self) -> Result<Self, ConstMathErr>[src]
fn mul(self, rhs: Self) -> Result<Self, ConstMathErr>Performs the * operation.
impl Div for ConstFloat[src]
impl Div for ConstFloattype Output = Result<Self, ConstMathErr>
The resulting type after applying the / operator.
fn div(self, rhs: Self) -> Result<Self, ConstMathErr>[src]
fn div(self, rhs: Self) -> Result<Self, ConstMathErr>Performs the / operation.
impl Rem for ConstFloat[src]
impl Rem for ConstFloattype Output = Result<Self, ConstMathErr>
The resulting type after applying the % operator.
fn rem(self, rhs: Self) -> Result<Self, ConstMathErr>[src]
fn rem(self, rhs: Self) -> Result<Self, ConstMathErr>Performs the % operation.
impl Neg for ConstFloat[src]
impl Neg for ConstFloatAuto Trait Implementations
impl Send for ConstFloat
impl Send for ConstFloatimpl Sync for ConstFloat
impl Sync for ConstFloat