2016-04-26 10:51:14 -07:00
|
|
|
pub mod kitties {
|
|
|
|
|
pub struct cat {
|
|
|
|
|
meows : usize,
|
|
|
|
|
|
|
|
|
|
pub how_hungry : isize,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl cat {
|
|
|
|
|
pub fn speak(&self) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn cat(in_x : usize, in_y : isize) -> cat {
|
|
|
|
|
cat {
|
|
|
|
|
meows: in_x,
|
|
|
|
|
how_hungry: in_y
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-03-18 22:05:24 +01:00
|
|
|
}
|