This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Thing { | |
pub num: i32, | |
} | |
impl Thing { | |
pub fn new(n: i32) -> Thing { | |
Thing { num: n } | |
} | |
pub fn add_total(&mut self, things: &ThingContainer) { |