mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
15 lines
237 B
Rust
15 lines
237 B
Rust
pub mod kitties {
|
|
pub struct cat {
|
|
meows : usize,
|
|
|
|
pub how_hungry : isize,
|
|
}
|
|
|
|
pub fn cat(in_x : usize, in_y : isize) -> cat {
|
|
cat {
|
|
meows: in_x,
|
|
how_hungry: in_y
|
|
}
|
|
}
|
|
}
|