Function |try_to_u16

std/conv::|try_to_u16


Usage

|try_to_u16<T>(value)

Generics

◻ T: TryToU16

Parameters

↳ value: T

Return

↴ Option<u16>


Try to turn data into u16.

This function returns an Option containing value if conversion is successful.