milli_core/heed_codec/
mod.rs

1mod beu16_str_codec;
2mod beu32_str_codec;
3mod byte_slice_ref;
4pub mod facet;
5mod field_id_word_count_codec;
6mod fst_set_codec;
7mod obkv_codec;
8mod roaring_bitmap;
9mod roaring_bitmap_length;
10mod str_beu32_codec;
11mod str_ref;
12mod str_str_u8_codec;
13pub mod version;
14
15pub use byte_slice_ref::BytesRefCodec;
16use heed::BoxedError;
17pub use str_ref::StrRefCodec;
18use thiserror::Error;
19
20pub use self::beu16_str_codec::BEU16StrCodec;
21pub use self::beu32_str_codec::BEU32StrCodec;
22pub use self::field_id_word_count_codec::FieldIdWordCountCodec;
23pub use self::fst_set_codec::FstSetCodec;
24pub use self::obkv_codec::ObkvCodec;
25pub use self::roaring_bitmap::{BoRoaringBitmapCodec, CboRoaringBitmapCodec, RoaringBitmapCodec};
26pub use self::roaring_bitmap_length::{
27    BoRoaringBitmapLenCodec, CboRoaringBitmapLenCodec, RoaringBitmapLenCodec,
28};
29pub use self::str_beu32_codec::{StrBEU16Codec, StrBEU32Codec};
30pub use self::str_str_u8_codec::{U8StrStrCodec, UncheckedU8StrStrCodec};
31
32pub trait BytesDecodeOwned {
33    type DItem;
34
35    fn bytes_decode_owned(bytes: &[u8]) -> Result<Self::DItem, BoxedError>;
36}
37
38#[derive(Error, Debug)]
39#[error("the slice is too short")]
40pub struct SliceTooShortError;