#[repr(C, align(64))]pub struct EmbeddingBlockHeader {
pub magic: u32,
pub version: u32,
pub count: u32,
pub dim: u32,
pub data_offset: u32,
pub stride: u32,
pub checksum: u32,
pub reserved: [u32; 9],
}Expand description
Header for an embedding block
Fields§
§magic: u32Magic number for validation
version: u32Block version
count: u32Number of vectors in block
dim: u32Vector dimension
data_offset: u32Offset to first vector (from start of block)
stride: u32Stride between vectors (bytes)
checksum: u32CRC32 checksum of data
reserved: [u32; 9]Reserved for future use
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingBlockHeader
impl Clone for EmbeddingBlockHeader
Source§fn clone(&self) -> EmbeddingBlockHeader
fn clone(&self) -> EmbeddingBlockHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddingBlockHeader
impl RefUnwindSafe for EmbeddingBlockHeader
impl Send for EmbeddingBlockHeader
impl Sync for EmbeddingBlockHeader
impl Unpin for EmbeddingBlockHeader
impl UnsafeUnpin for EmbeddingBlockHeader
impl UnwindSafe for EmbeddingBlockHeader
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more