Function constmuck::contiguous::from_i8[][src]

pub const fn from_i8<T>(
    integer: i8,
    bounds: ImplsContiguous<T, i8>
) -> Option<T>
Expand description

Converts ìnteger: i8 to T if it’s between the minimum and maximum values for T, otherwise returns None.

Requires that T implements Contiguous<Int = i8>

Examples

For examples, you can look at the ones for from_u8.