3 ms·
Are there examples of RefMut::map_split? It seems pretty useful if it does what I think it does.
by Paul-ish 7y ago
Are there examples of RefMut::map_split? It seems pretty useful if it does what I think it does.
- comex 7y agoThe nightly version of the docs properly document that method, including an example: https://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map_split https://doc.rust-lang.org/nightly/std/cell/struct.RefMut.htm...
- Arnavion 7y agoIf 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.