Crate tantivy_common
source ·Modules§
Structs§
- Struct used to prevent from calling
terminate_ref
directly - Indicates space usage in bytes
- A date/time value with nanoseconds precision.
- Create a new JsonPathWriter, that creates flattened json paths for tantivy.
- An OwnedBytes simply wraps an object that owns a slice of data and exposes this data as a slice.
- Serialized BitSet.
- Wrapper over a
u64
that serializes as a variable int. - Wrapper over a
u128
that serializes as a variable int.
Enums§
- Precision with which datetimes are truncated when stored in fast fields. This setting is only relevant for fast fields. In the docstore, datetimes are always saved with nanosecond precision.
- Defines little-endian serialization.
Traits§
- Trait for a simple binary serialization.
FixedSize
marks aBinarySerializable
as always serializing to the same size.- Has length trait
- An unsafe marker trait for types that deref to a stable address, even when moved. For example, this is implemented by Box, Vec, Rc, Arc and String, among others. Even when a Box is moved, the underlying storage remains at a fixed location.
- Trait used to indicate when no more write need to be done on a writer
Functions§
- Maps a
f64
tou64
- Maps a
i64
tou64
- Reads a vint
u32
from a buffer, and consumes its payload data. - Replaces a given byte in the
bytes
slice of bytes. - Reverse the mapping given by
f64_to_u64()
. - Reverse the mapping given by
i64_to_u64()
. - Write a
u32
as a vint payload.