method str.rfind
Byte index of the last occurrence of needle.
Example:
fn main() io {
print("{"hello".rfind("l")}")
}Вывод
3
pub(api) fn rfind(needle: str) -> usize?С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
needle | str |
Возвращает
usize?
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/text.oxl:615