MCPcopy Create free account
hub / github.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly / Rect

Class Rect

src/engine.rs:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42#[derive(Default)]
43pub struct Rect {
44 pub position: Point,
45 pub width: i16,
46 pub height: i16,
47}
48
49impl Rect {
50 pub const fn new(position: Point, width: i16, height: i16) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected