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