Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-for-Blockchain-Application-Development
/ rectangle
Class
rectangle
chapter 2/code.rs:224–227 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
222
Let vector: Vec<i32> = Vec::new( );
223
224
struct rectangle {
225
w: i8
226
h: i8
227
}
228
229
let mut v = vec![];
230
v.push(rectangle{w: 3, h: 4});
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected