Function constmuck::contiguous::from_u16[][src]

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

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

Requires that T implements Contiguous<Int = u16>

Examples

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