Module primitive

Source

Macrosยง

primitive_stats_rust_type ๐Ÿ”’
This macro implements the RustType trait for all variants of PrimitiveStats.
stats_primitive ๐Ÿ”’
This macro implements the ColumnStats trait for all variants of PrimitiveStats.

Structsยง

PrimitiveStats
Statistics about a primitive non-optional column.

Enumsยง

PrimitiveStatsVariants
Enum wrapper around PrimitiveStats for each variant that we support.
TruncateBound
Whether a truncated value should be a lower or upper bound on the original.

Constantsยง

TRUNCATE_LEN
The length to truncate Vec<u8> and String stats to.

Functionsยง

any_primitive_stats ๐Ÿ”’
Returns a Strategy for generating arbitrary PrimitiveStats.
any_primitive_vec_u8_stats ๐Ÿ”’
Returns a Strategy for generating arbitrary PrimitiveStats<Vec<u8>>.
truncate_bytes
Truncates a u8 slice to the given maximum byte length.
truncate_string
Truncates a string to the given maximum byte length.