// TODO(csuter): We need to handle the case where the mutable layer is empty.
/// Seals the current mutable layer and creates a new one.
We need to handle the case where the mutable layer is empty.
Seals the current mutable layer and creates a new one.
We need to handle the case where the mutable layer is empty . Seals the current mutable layer and creates a new one .
pub fn seal(&self) {
        let mut data = self.data.write().unwrap();
        let layer = data.mutable_layer.clone().as_layer();
        data.layers.insert(0, layer);
        data.mutable_layer = skip_list_layer::SkipListLayer::new(SKIP_LIST_LAYER_ITEMS);
    }
pub fn seal ( & self ) { let mut data = self . data . write ( ) . unwrap ( ) ; let layer = data . mutable_layer . clone ( ) . as_layer ( ) ; data . layers . insert ( 0 , layer ) ; data . mutable_layer = skip_list_layer :: SkipListLayer :: new ( SKIP_LIST_LAYER_ITEMS ) ; }
TODO(csuter): We need to handle the case where the mutable layer is empty.
TODO ( csuter ) : We need to handle the case where the mutable layer is empty .
&self