Function constmuck::contiguous::from_isize [−][src]
pub const fn from_isize<T>(
integer: isize,
bounds: IsContiguous<T, isize>
) -> Option<T>
Expand description
Converts ìnteger: isize
to T
if it’s between the minimum and maximum values for T
, otherwise returns None
.
Requires that T
implements Contiguous<Int = isize>
Examples
For examples, you can look
at the ones for from_u8
.