🌈 搜索
📅  最后修改于: 2022-03-11 14:49:24.940000             🧑  作者: Mango
fn main() { let s = "/test1/test2/test3"; let pos = s.rfind('/'); println!("{:?}", pos); // prints "Some(12)" }