pub trait ToUsize {
// Required method
fn to_usize(self) -> usize;
}Expand description
A trait to indicate a type can be infallibly converted to usize.
This should only be implemented for infallible conversions, so only unsigned types are valid.