Trait tantivy::fastfield::FastValue [−][src]
Trait for types that are allowed for fast fields: (u64, i64 and f64).
Required methods
fn from_u64(val: u64) -> Self
[src]
Converts a value from u64
Internally all fast field values are encoded as u64.
fn to_u64(&self) -> u64
[src]
Converts a value to u64.
Internally all fast field values are encoded as u64.
fn fast_field_cardinality(field_type: &FieldType) -> Option<Cardinality>
[src]
Returns the fast field cardinality that can be extracted from the given
FieldType
.
If the type is not a fast field, None
is returned.
fn as_u64(&self) -> u64
[src]
Cast value to u64
.
The value is just reinterpreted in memory.
fn to_type() -> Type
[src]
Returns the schema::Type
for this FastValue.
Provided methods
fn make_zero() -> Self
[src]
Build a default value. This default value is never used, so the value does not really matter.