MCPcopy Create free account
hub / github.com/derekbanas/Rust-Tutorial / Rectangle

Class Rectangle

main.rs:695–695  ·  view source on GitHub ↗

Define rectangle and circle struct

Source from the content-addressed store, hash-verified

693
694 // Define rectangle and circle struct
695 struct Rectangle {length: f32, width: f32}
696 struct Circle {length: f32, width: f32}
697
698 // Implement the trait for rectangle

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected