blob: de2945d7460451a4c630e3be7945a004da9b16b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
}
}
}
|