[][src]Module arbitrary::size_hint

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

Functions

and

Take the sum of the lhs and rhs size hints.

and_all

Take the sum of all of the given size hints.

or

Take the minimum of the lower bounds and maximum of the upper bounds in the lhs and rhs size hints.

or_all

Take the maximum of the lhs and rhs size hints.

recursion_guard

Protects against potential infinite recursion when calculating size hints due to indirect type recursion.