rlucene 0.1.0-alpha.3

A Rust port of Apache Lucene, a full-text search engine library
Documentation
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
use crate::core::index::point_values::{IntersectVisitor, PointTree};
use crate::core::util::clone::TryClone;
use crate::core::util::error::lucene_error::Result;
use std::borrow::Cow;

pub struct DummyPointTree;

impl TryClone for DummyPointTree {
  fn try_clone(&self) -> Result<Self>
  where
    Self: Sized,
  {
    dummy_unreachable!()
  }
}
impl PointTree for DummyPointTree {
  type MutablePointTree =
    crate::core::codecs::dummy::dummy_mutable_point_tree::DummyMutablePointTree;

  fn move_to_child(&mut self) -> Result<bool> {
    dummy_unreachable!()
  }

  fn move_to_sibling(&mut self) -> Result<bool> {
    dummy_unreachable!()
  }

  fn move_to_parent(&mut self) -> Result<bool> {
    dummy_unreachable!()
  }

  fn get_min_packed_value(&self) -> Result<Cow<'_, [u8]>> {
    dummy_unreachable!()
  }

  fn get_max_packed_value(&self) -> Result<Cow<'_, [u8]>> {
    dummy_unreachable!()
  }

  fn size(&self) -> Result<usize> {
    dummy_unreachable!()
  }

  fn visit_doc_ids<IV>(&mut self, _visitor: &mut IV) -> Result<()>
  where
    IV: IntersectVisitor,
  {
    dummy_unreachable!()
  }

  fn visit_doc_values<IV>(&mut self, _visitor: &mut IV) -> Result<()>
  where
    IV: IntersectVisitor,
  {
    dummy_unreachable!()
  }
}