Skip to content

v0.2.0

Choose a tag to compare

@se-mo se-mo released this 15 May 18:04
· 87 commits to main since this release

Added

  • nearly, assert_nearly and debug_assert_nearly macros can now be called with an eps together with an ulps argument
  • Add nearly comparison support for (where T implements the nearly traits):
    • Array, Slice, Vec, VecDeque and LinkedList of T
    • Arc, Box, Pin and Rc pointer of T
    • Tuples of T up to a size of 12
    • HashMap and BTreeMap where the value is of T
    • References and mutable references of T

Changed

  • Instead of inferring the type for eps and ulps tolerance based on types implementing the nearly traits, there are new generic trait types used for inferring the tolerance type
  • Trait ToleranceTypes is renamed to EpsAndUlpsTolerance

Fixed

  • Fix broken no_std build