Module arbitrary::size_hint

source ·
Expand description

Utilities for working with and combining the results of Arbitrary::size_hint.

Functions

  • Take the sum of the lhs and rhs size hints.
  • Take the sum of all of the given size hints.
  • Take the minimum of the lower bounds and maximum of the upper bounds in the lhs and rhs size hints.
  • Take the maximum of the lhs and rhs size hints.
  • Protects against potential infinite recursion when calculating size hints due to indirect type recursion.