Trait tantivy_common::FixedSize

source ·
pub trait FixedSize: BinarySerializable {
    const SIZE_IN_BYTES: usize;
}
Expand description

FixedSize marks a BinarySerializable as always serializing to the same size.

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FixedSize for bool

source§

impl FixedSize for f32

source§

impl FixedSize for f64

source§

impl FixedSize for i64

source§

impl FixedSize for u8

source§

impl FixedSize for u16

source§

impl FixedSize for u32

source§

impl FixedSize for u64

source§

impl FixedSize for u128

source§

const SIZE_IN_BYTES: usize = 16usize

source§

impl FixedSize for ()

source§

impl<Left: BinarySerializable + FixedSize, Right: BinarySerializable + FixedSize> FixedSize for (Left, Right)

Implementors§