[][src]Function numberkit::as_u16

pub fn as_u16<S>(text: S) -> Result<u16, ParseIntError> where
    S: AsRef<OsStr>, 

covert string to u16

Example

assert_eq!(1 as u16, numberkit::as_u16("1").unwrap());