Function first_char

Source
pub(crate) fn first_char(s: &str) -> char
Expand description

Return the first codepoint of a string.

ยงPanics

Panics if the string is empty.