diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rust/src/fridge.rs	Sat Dec 24 00:14:58 2016 +0800
@@ -0,0 +1,16 @@
+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;
+    }
+
+}