Rust Inlining-function Resources