Crate batbox_num

Source
Expand description

Numeric types and traits

Structs§

RealImpl
Wrapper around T that checks for valid values (panics on NaN/Inf)
UniformReal
Uniform RealImpl sampler

Traits§

Float
Floating point number, including NaN/Inf
Num
Generic signed number type
Real
Real number (differs from Float as doesn’t support NaN)
UNum
Generic number, possibly unsigned

Functions§

r32
Construct a new R32 from an f32
r64
Construct a new R64 from an f64

Type Aliases§

R32
Like f32 but panics on NaN/Inf
R64
Like f64 but panics on NaN/Inf