Hacker News new | ask | show | jobs
by Paul-ish 2586 days ago
Are there examples of RefMut::map_split? It seems pretty useful if it does what I think it does.
2 comments

The nightly version of the docs properly document that method, including an example:

https://doc.rust-lang.org/nightly/std/cell/struct.RefMut.htm...

If you click the link you will be taken to the docs page. You have to then click the `+` next to the function name to expand it and show the function docs, which includes an example.