20
5 Strong Opinions On Everyday Rust
(www.youtube.com)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
Such a case would be the single function having a side effect*. This allows the caller to chose when to execute the side effect or to drop the result without executing it.
In my opinion that is fine with
fn_once
but notinto
because of the implicit contract of these traits.* = I'm counting expensive computation, but not allocation and memcopy as a side effect in this comment.