char_code_at

Function char_code_at 

Source
pub fn char_code_at(s: &str, index: i64) -> Option<u16>
Expand description

Returns the UTF-16 code unit at index, matching JS charCodeAt.

index is interpreted as a UTF-16 code-unit index.