Skip to content

Commit a899c2b

Browse files
committed
add new trait FloatExt
- reexport `FloatExt` from `prelude`. - rename `maximum` to `max_nan` and `minimum` to `max_min`. - add total order comparison methods, and `clamp*`. - fix `max` and `min` methods. - update docs. - add methods
1 parent 7d39784 commit a899c2b

File tree

5 files changed

+640
-364
lines changed

5 files changed

+640
-364
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ pub mod prelude {
200200
#[cfg(feature = "ops")]
201201
pub use crate::ops::convert::primitive::{FromPrimitives, IntoPrimitives};
202202

203+
#[cfg(any(feature = "std", feature = "libm"))]
204+
pub use crate::ops::FloatExt;
205+
203206
#[cfg(feature = "result")]
204207
pub use crate::result::{Also, Apply, OptionExt, ResultExt};
205208

0 commit comments

Comments
 (0)