src/types.rs

changeset 199
32f5062ee477
parent 195
93e003c1f0ef
--- a/src/types.rs	Fri May 15 14:46:30 2026 -0500
+++ b/src/types.rs	Tue Jul 07 11:53:22 2026 +0300
@@ -11,6 +11,7 @@
 
 //use trait_set::trait_set;
 pub use num_traits::cast::AsPrimitive;
+pub use num_traits::float::TotalOrder;
 pub use num_traits::Float as NumTraitsFloat; // needed to re-export functions.
 
 pub use simba::scalar::{
@@ -97,7 +98,10 @@
 impl<U: Num + num::Signed + std::ops::Neg<Output = Self>> SignedNum for U {}
 
 /// Trait for floating point numbers
-pub trait Float: SignedNum + std::fmt::LowerExp + num::Float /*+ From<Self::CompatibleSize>*/ {
+pub trait Float:
+    SignedNum + std::fmt::LowerExp + num::Float + num_traits::float::TotalOrder
+/*+ From<Self::CompatibleSize>*/
+{
     // An unsigned integer that can be used for indexing operations and
     // converted to F without loss.
     //type CompatibleSize : CompatibleUnsigned<Self>;

mercurial