Function steap_by_steap::sort::char_at
source · fn char_at(s: &str, d: usize) -> usize
Expand description
Get the character at a specific index in a string.
If the index is out of bounds, return -1.
Args: s: Reference to the string. d: Index of the character to retrieve.
Returns: usize: ASCII value of the character, or -1 if out of bounds.