There was an error while loading. Please reload this page.
From
I like this crate mainly because it support arbitrary exponent which is not constrained only 0..base^bits range.
But weak side is missing developer friendly conversion methods. I mean two different aspects here:
u*
i*
f*
Fix
I think in this case it is pretty usable to implement core rust conversion traits: From, TryTrom, Into, TryInto.
TryTrom
Into
TryInto
I like this crate mainly because it support arbitrary exponent which is not constrained only 0..base^bits range.
But weak side is missing developer friendly conversion methods.
I mean two different aspects here:
u*,i*,f*andFixtype.Fixtypes with different bits, base and exponent.I think in this case it is pretty usable to implement core rust conversion traits:
From,TryTrom,Into,TryInto.