rw_resource_util::util

Function read_usize_or_max

source
pub fn read_usize_or_max(
    file_path: &str,
    max_value: usize,
) -> Result<usize, Error>
Expand description

Helper function that helps to retrieve value in file, if value is “max”, max_value will be returned instead.