/// Opens an existing tree from the provided handles to the layer objects.
Opens an existing tree from the provided handles to the layer objects.
Opens an existing tree from the provided handles to the layer objects .
pub async fn open(
        merge_fn: merge::MergeFn<K, V>,
        handles: Box<[impl ObjectHandle + 'static]>,
    ) -> Result<Self, Error> {
        Ok(LSMTree {
            data: RwLock::new(Inner {
                mutable_layer: skip_list_layer::SkipListLayer::new(SKIP_LIST_LAYER_ITEMS),
                layers: Self::layers_from_handles(handles).await?,
            }),
            merge_fn,
        })
    }
pub async fn open ( merge_fn : merge :: MergeFn < K , V > , handles : Box < [ impl ObjectHandle + ' static ] > , ) -> Result < Self , Error > { Ok ( LSMTree { data : RwLock :: new ( Inner { mutable_layer : skip_list_layer :: SkipListLayer :: new ( SKIP_LIST_LAYER_ITEMS ) , layers : Self :: layers_from_handles ( handles ) . await ? , } ) , merge_fn , } ) }
Opens an existing tree from the provided handles to the layer objects.
Opens an existing tree from the provided handles to the layer objects .
merge_fn
merge::MergeFn<K, V>
handles
Box<[impl ObjectHandle + 'static]>