Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch17-oop
/
listing-17-08
/
src
/
main.rs
blob: 9575d407e365f8168d50ca41e70b5f1fb8413027 [
file
] [
log
] [
blame
]
// 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
()
{}