Add LowerExp to Float trait bounds dev

Tue, 24 Feb 2026 09:44:53 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Tue, 24 Feb 2026 09:44:53 -0500
branch
dev
changeset 195
93e003c1f0ef
parent 194
a5ee4bfb0b87
child 196
3697375f4ee9

Add LowerExp to Float trait bounds

src/types.rs file | annotate | diff | comparison | revisions
--- a/src/types.rs	Thu Jan 15 16:12:47 2026 -0500
+++ b/src/types.rs	Tue Feb 24 09:44:53 2026 -0500
@@ -97,7 +97,7 @@
 impl<U: Num + num::Signed + std::ops::Neg<Output = Self>> SignedNum for U {}
 
 /// Trait for floating point numbers
-pub trait Float: SignedNum + num::Float /*+ From<Self::CompatibleSize>*/ {
+pub trait Float: SignedNum + std::fmt::LowerExp + num::Float /*+ From<Self::CompatibleSize>*/ {
     // An unsigned integer that can be used for indexing operations and
     // converted to F without loss.
     //type CompatibleSize : CompatibleUnsigned<Self>;

mercurial