Rust Static-typing Resources