pub trait ToIsize {
// Required method
fn to_isize(self) -> isize;
}Expand description
Infallibly convert a value into isize.
Implementations exist only when the conversion is guaranteed not
to lose information under the selected min-usize-* portability
contract.
use usize_conv::ToIsize;
let x: i16 = -3;
assert_eq!(x.to_isize(), -3isize);