Skip to content

Instantly share code, notes, and snippets.

@boustrophedon
boustrophedon / playground.rs
Created November 3, 2016 22:01 — forked from anonymous/playground.rs
Shared via Rust Playground
struct Thing {
pub num: i32,
}
impl Thing {
pub fn new(n: i32) -> Thing {
Thing { num: n }
}
pub fn add_total(&mut self, things: &ThingContainer) {