Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

SplitWhitespace is a convenience. Its underlying internal type is actually:

    Filter<Split<'a, IsWhitespace>, IsNotEmpty>
The split[1] method is generic, and for example, one can indeed use a regex for it. (I wouldn't use it for CSV though, since it would almost certainly be wrong.)

[1] - https://doc.rust-lang.org/std/primitive.str.html#method.spli...



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: