MCPcopy 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

222Let vector: Vec<i32> = Vec::new( );
223
224struct rectangle {
225 w: i8
226 h: i8
227}
228
229let mut v = vec![];
230v.push(rectangle{w: 3, h: 4});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected