Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-for-Blockchain-Application-Development
/ main
Function
main
chapter 2/code.rs:19–22 ·
view source on GitHub ↗
variables in rust
()
Source
from the content-addressed store, hash-verified
17
18
// variables in rust
19
fn main() {
20
let x = 5;
21
println!(“The value of is:{x}”);
22
}
23
24
// all variables in Rust are immutable
25
fn main() {
Callers
nothing calls this directly
Calls
3
plus_ten
Function · 0.85
another_function
Function · 0.85
calculate_length
Function · 0.85
Tested by
no test coverage detected