1 pub mod kitties { 2 pub struct cat { 3 meows : usize, 4 5 pub how_hungry : isize, 6 7 } 8 9 impl cat { speak(&self)10 pub fn speak(&self) {} 11 } 12 cat(in_x : usize, in_y : isize) -> cat13 pub fn cat(in_x : usize, in_y : isize) -> cat { 14 cat { 15 meows: in_x, 16 how_hungry: in_y 17 } 18 } 19 } 20