[−][src]Function avocado::utils::int_to_usize_with_msg
pub fn int_to_usize_with_msg<T: Into<i64>>(x: T, msg: &str) -> Result<usize>
Converts an i8
, i16
, i32
or i64
to a usize
if the range and
the value permits. Constructs an error message based on msg
otherwise.