comparison 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
comparison
equal deleted inserted replaced
591:4a944663fa8d 592:03b48ec0bb03
1 use types::*;
2
3 pub struct Fridge<'a> {
4 params: &'a Params,
5 }
6
7 impl<'a> Fridge<'a> {
8 pub fn new(p: &'a Params) -> Fridge<'a> {
9 Fridge { params: p }
10 }
11
12 pub fn set_params(&mut self, p: &'a Params) {
13 self.params = p;
14 }
15
16 }