Earlier quoted context omitted.
> I'm not sure why that's an option you'd need to accomodate. Again, it's about control. Maybe you're only loading a small configuration file, and so fetching it all in one go is better than dealing with a buffer. > an obvious way to do this. If you search for 'line' or 'lines' in rustdoc, the correct thing is right near the top, which will show you how to use it with BufRead.
> Maybe you're only loading a small configuration file, and so fetching it all in one go is better than dealing with a buffer. If it's small, it can't be that much worse to buffer. What's wrong with reasonable defaults? Can you tell me what it means to search for 'line' or 'lines' in rustdoc? Is this a command-line tool? I'm aware of the 'rustdoc' that generates documentation, but not of anything by that name that se…
Rustdoc has a search bar at the top. with 'line' it's the third result, 'lines' is the first https://doc.rust-lang.org/stable/std/?search=lines
and the short description makes it clear that the first two results are irrelevant in this case.
> It would be great to have an offline way to search Rust documentation and examples,
It all works offline. These docs are pre-installed for you when you install Rust, and 'cargo doc' will generate them for your whole project.
> perhaps because you are an expert in the language and know exactly what to search for.
I copy-pasted my search term exactly in the previous post.