Function arbitrary::size_hint::or_all

source ·
pub fn or_all(hints: &[(usize, Option<usize>)]) -> (usize, Option<usize>)
Expand description

Take the maximum of the lhs and rhs size hints.

If hints is empty, returns (0, Some(0)), aka the size of consuming nothing.