pub trait ToUSize {
// Required method
fn to_usize(&self) -> usize;
}Expand description
Trait defining instance method to_usize() : usize that provides a
no-cost or low-cost conversion into usize.
It is expected that the implementing type “is-a” usize in a logical
manner.
§Additional Implementations on Foreign Types
§Built-in Types
If the feature "implement-ToUSize-for-built_ins"
is defined (as it is by "default"), then this is also implemented
for the following type(s):