clone impls for raw batches panic
@@ -34,7 +34,7 @@ pub type OrdKeySpine<K, T, R> = Spine<K, (), T, R, Rc<OrdKeyBatch<K, T, R>>>;
/// An immutable collection of update tuples, from a contiguous interval of logical times.
-#[derive(Debug, Clone)]
+#[derive(Debug)]
pub struct OrdValBatch<K: Ord, V: Ord, T: Lattice, R> {
/// Where all the dataz is.
pub layer: OrderedLayer<K, OrderedLayer<V, OrderedLeaf<T, R>>>,
@@ -42,6 +42,12 @@ pub struct OrdValBatch<K: Ord, V: Ord, T: Lattice, R> {
pub desc: Description<T>,
}
+impl<K: Ord, V: Ord, T: Lattice, R> Clone for OrdValBatch<K, V, T, R> {
+ fn clone(&self) -> Self {
+ panic!("Error: In OrdValBatch::clone()");
+ }
+}
+
impl<K, V, T, R> BatchReader<K, V, T, R> for OrdValBatch<K, V, T, R>
where K: Ord+Clone+'static, V: Ord+Clone+'static, T: Lattice+Ord+Clone+'static, R: Diff {
type Cursor = OrdValCursor<V, T, R>;
@@ -326,7 +332,7 @@ where K: Ord+Clone+'static, V: Ord+Clone+'static, T: Lattice+Ord+Clone+::std::fm
/// An immutable collection of update tuples, from a contiguous interval of logical times.
-#[derive(Debug, Clone)]
+#[derive(Debug)]
pub struct OrdKeyBatch<K: Ord, T: Lattice, R> {
/// Where all the dataz is.
pub layer: OrderedLayer<K, OrderedLeaf<T, R>>,
@@ -334,6 +340,12 @@ pub struct OrdKeyBatch<K: Ord, T: Lattice, R> {
pub desc: Description<T>,
}
+impl<K: Ord, T: Lattice, R> Clone for OrdKeyBatch<K, T, R> {
+ fn clone(&self) -> Self {
+ panic!("Error: In OrdKeyBatch::clone()");
+ }
+}
+
impl<K, T, R> BatchReader<K, (), T, R> for OrdKeyBatch<K, T, R>
where K: Ord+Clone+'static, T: Lattice+Ord+Clone+'static, R: Diff {
type Cursor = OrdKeyCursor<T, R>;
