Skip to main content

parse_size

Function parse_size 

Source
pub fn parse_size(text: &str) -> Result<usize, SizeError>
Expand description

A typed sample size: 50000, 50,000, 50_000, 50k, 2m, 2.5M. A size of no rows is refused; past usize it saturates and the caller clamps.