pub struct CorpusFileHeader {
pub vector_count: u64,
pub dimension: u32,
pub bit_width: u8,
pub residual: bool,
pub config_hash: String,
pub metadata: Vec<u8>,
pub body_offset: usize,
}Expand description
Decoded Level-2 header with ownership of string data.
Fields§
§vector_count: u64Number of vectors in the file.
dimension: u32Dimension of each vector.
bit_width: u8Bit width (2, 4, or 8).
residual: boolWhether all vectors have a residual section.
config_hash: StringConfig hash string.
metadata: Vec<u8>Opaque metadata bytes.
body_offset: usizeByte offset where the body (records) begins.
Auto Trait Implementations§
impl Freeze for CorpusFileHeader
impl RefUnwindSafe for CorpusFileHeader
impl Send for CorpusFileHeader
impl Sync for CorpusFileHeader
impl Unpin for CorpusFileHeader
impl UnsafeUnpin for CorpusFileHeader
impl UnwindSafe for CorpusFileHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more