+#[allow(dead_code)]
+struct HAMShuffler {
+ lastframe: Option<NAFrameRef>,
+}
+
+impl HAMShuffler {
+ #[allow(dead_code)]
+ fn new() -> Self { HAMShuffler { lastframe: None } }
+ #[allow(dead_code)]
+ fn clear(&mut self) { self.lastframe = None; }
+ #[allow(dead_code)]
+ fn add_frame(&mut self, frm: NAFrame) {
+ self.lastframe = Some(Rc::new(RefCell::new(frm)));
+ }
+ #[allow(dead_code)]
+ fn clone_ref(&mut self) -> Option<NAFrameRef> {
+ match self.lastframe {
+ Some(ref frm) => Some(Rc::new(RefCell::new(NAFrame::from_copy(&frm.borrow())))),
+ None => None,
+ }
+ }
+ #[allow(dead_code)]
+ fn get_output_frame(&mut self) -> Option<NAFrameRef> {
+ match self.lastframe {
+ Some(ref frm) => Some(frm.clone()),
+ None => None,
+ }
+ }
+}
+