Skip to main content

at

Function at 

Source
pub fn at(s: &Str, index: f64) -> Option<Str>
Expand description

at: like charAt, but a negative index counts from the end. None on OOB — Array#at and Uint8Array#at both answer undefined there, and "" is indistinguishable from a legitimate empty read.