Function result_float::rf [−][src]
pub fn rf<F>(v: F) -> Result<F> where
F: FloatCore,
Shorthand for ResultFloat::new(value)
.
use result_float::rf; assert_eq!((rf(0.5)? * rf(2.0)?)?, rf(1.0)?);
pub fn rf<F>(v: F) -> Result<F> where
F: FloatCore,
Shorthand for ResultFloat::new(value)
.
use result_float::rf; assert_eq!((rf(0.5)? * rf(2.0)?)?, rf(1.0)?);