rust-book-cn/listings/ch17-oop/listing-17-08/src/main.rs
2021-05-09 14:49:31 +08:00

18 lines
248 B
Rust

// ANCHOR: here
use gui::Draw;
struct SelectBox {
width: u32,
height: u32,
options: Vec<String>,
}
impl Draw for SelectBox {
fn draw(&self) {
// code to actually draw a select box
}
}
// ANCHOR_END: here
fn main() {}