Rust standard library: str

Rust contributorsOnline resourcereference

Check the lines() contract on empty input and a trailing newline; distinguish bytes from characters.

Open the source ↗

How to study this source

Ideas and questions

Read background definitions when a term blocks the argument. Then return to the source and reconstruct its claim in your own words.

Read alongside, read against