Crate tantivy_common

Source

Modules§

file_slice

Structs§

AntiCallToken
Struct used to prevent from calling terminate_ref directly
BitSet
ByteCount
Indicates space usage in bytes
CountingWriter
DateTime
A date/time value with nanoseconds precision.
JsonPathWriter
Create a new JsonPathWriter, that creates flattened json paths for tantivy.
OwnedBytes
An OwnedBytes simply wraps an object that owns a slice of data and exposes this data as a slice.
ReadOnlyBitSet
Serialized BitSet.
TinySet
TinySetIterator
VInt
Wrapper over a u64 that serializes as a variable int.
VIntU128
Wrapper over a u128 that serializes as a variable int.

Enums§

DateTimePrecision
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.
Endianness
Defines little-endian serialization.

Traits§

BinarySerializable
Trait for a simple binary serialization.
DeserializeFrom
FixedSize
FixedSize marks a BinarySerializable as always serializing to the same size.
GroupByIteratorExtended
HasLen
Has length trait
StableDeref
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.
TerminatingWrite
Trait used to indicate when no more write need to be done on a writer

Functions§

f64_to_u64
Maps a f64 to u64
i64_to_u64
Maps a i64 to u64
intersect_bitsets
read_u32_vint
Reads a vint u32 from a buffer, and consumes its payload data.
read_u32_vint_no_advance
replace_in_place
Replaces a given byte in the bytes slice of bytes.
serialize_vint_u32
u64_to_f64
Reverse the mapping given by f64_to_u64().
u64_to_i64
Reverse the mapping given by i64_to_u64().
write_u32_vint
Write a u32 as a vint payload.