Crate rustc_const_math [] [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?

Rusty Mathematics

Note

This API is completely unstable and subject to change.

Reexports

pub use self::ConstInt::*;
pub use self::ConstUsize::*;
pub use self::ConstIsize::*;

Structs

ConstFloat [
Experimental
]

Enums

ConstInt [
Experimental
]
ConstIsize [
Experimental
]

Depending on the target only one variant is ever used in a compilation. Anything else is an error. This invariant is checked at several locations

ConstMathErr [
Experimental
]
ConstUsize [
Experimental
]

Depending on the target only one variant is ever used in a compilation. Anything else is an error. This invariant is checked at several locations

Op [
Experimental
]

Constants

MAX_F32_PLUS_HALF_ULP [
Experimental
]

This is f32::MAX + (0.5 ULP) as an integer. Numbers greater or equal to this are rounded to infinity when converted to f32.