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