2023-07-20 17:57:07 +02:00
|
|
|
mod beu16_str_codec;
|
2020-09-07 15:42:20 +02:00
|
|
|
mod beu32_str_codec;
|
2022-10-12 09:42:55 +02:00
|
|
|
mod byte_slice_ref;
|
2021-06-16 18:33:33 +02:00
|
|
|
pub mod facet;
|
|
|
|
mod field_id_word_count_codec;
|
2023-05-02 09:34:28 +02:00
|
|
|
mod fst_set_codec;
|
2020-10-21 15:51:48 +02:00
|
|
|
mod obkv_codec;
|
2021-02-18 13:56:28 +01:00
|
|
|
mod roaring_bitmap;
|
2021-02-18 14:24:30 +01:00
|
|
|
mod roaring_bitmap_length;
|
2021-10-05 11:18:42 +02:00
|
|
|
mod str_beu32_codec;
|
2022-10-12 09:42:55 +02:00
|
|
|
mod str_ref;
|
2020-09-22 12:38:12 +02:00
|
|
|
mod str_str_u8_codec;
|
2020-06-22 17:56:07 +02:00
|
|
|
|
2023-11-27 11:52:22 +01:00
|
|
|
pub use byte_slice_ref::BytesRefCodec;
|
2023-11-22 18:21:19 +01:00
|
|
|
use heed::BoxedError;
|
2022-10-26 13:49:33 +02:00
|
|
|
pub use str_ref::StrRefCodec;
|
2023-11-28 10:11:17 +01:00
|
|
|
use thiserror::Error;
|
2022-10-26 13:49:33 +02:00
|
|
|
|
2023-07-20 17:57:07 +02:00
|
|
|
pub use self::beu16_str_codec::BEU16StrCodec;
|
2020-09-07 15:42:20 +02:00
|
|
|
pub use self::beu32_str_codec::BEU32StrCodec;
|
2021-06-16 18:33:33 +02:00
|
|
|
pub use self::field_id_word_count_codec::FieldIdWordCountCodec;
|
2023-05-02 09:34:28 +02:00
|
|
|
pub use self::fst_set_codec::FstSetCodec;
|
2020-10-21 15:51:48 +02:00
|
|
|
pub use self::obkv_codec::ObkvCodec;
|
2021-02-18 13:56:28 +01:00
|
|
|
pub use self::roaring_bitmap::{BoRoaringBitmapCodec, CboRoaringBitmapCodec, RoaringBitmapCodec};
|
2021-06-16 18:33:33 +02:00
|
|
|
pub use self::roaring_bitmap_length::{
|
|
|
|
BoRoaringBitmapLenCodec, CboRoaringBitmapLenCodec, RoaringBitmapLenCodec,
|
|
|
|
};
|
2023-05-03 12:21:58 +02:00
|
|
|
pub use self::str_beu32_codec::{StrBEU16Codec, StrBEU32Codec};
|
2022-09-14 14:01:53 +02:00
|
|
|
pub use self::str_str_u8_codec::{U8StrStrCodec, UncheckedU8StrStrCodec};
|
2023-06-13 14:41:53 +02:00
|
|
|
|
|
|
|
pub trait BytesDecodeOwned {
|
|
|
|
type DItem;
|
|
|
|
|
2023-11-22 18:21:19 +01:00
|
|
|
fn bytes_decode_owned(bytes: &[u8]) -> Result<Self::DItem, BoxedError>;
|
2023-06-13 14:41:53 +02:00
|
|
|
}
|
2023-11-28 10:11:17 +01:00
|
|
|
|
|
|
|
#[derive(Error, Debug)]
|
|
|
|
#[error("the slice is too short")]
|
|
|
|
pub struct SliceTooShortError;
|