mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 05:13:29 +08:00
10 lines
138 B
Rust
10 lines
138 B
Rust
pub trait Draw {
|
|
fn draw(&self);
|
|
}
|
|
|
|
// ANCHOR: here
|
|
pub struct Screen {
|
|
pub components: Vec<Box<dyn Draw>>,
|
|
}
|
|
// ANCHOR_END: here
|