HomeRust Programming

Rust Programming

How To Make A Function Public Rust?

Add `pub` before the function name Example: `pub fn my_function() {}` For methods inside an `impl`, add `pub` before the method name Example: `impl MyType { pub...

Trending Today