MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / new

Method new

src/renderer/mock.rs:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8impl MockRenderer {
9 pub fn new() -> Self {
10 Self {
11 last_color: None,
12 last_text: None,
13 }
14 }
15
16 pub fn last_color(&self) -> Color {
17 self.last_color.unwrap_or(Color::rgb(0.0, 0.0, 0.0))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected