Mercurial > templog
view rust/src/fridge.rs @ 592:03b48ec0bb03 rust
fridge, types, configwaiter
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Dec 2016 00:14:58 +0800 |
parents | |
children | bf138339d20a |
line wrap: on
line source
use types::*; pub struct Fridge<'a> { params: &'a Params, } impl<'a> Fridge<'a> { pub fn new(p: &'a Params) -> Fridge<'a> { Fridge { params: p } } pub fn set_params(&mut self, p: &'a Params) { self.params = p; } }