pub struct ValidatedEmbeddingBatch { /* private fields */ }Expand description
A complete validated batch in canonical raw-UUID order.
Implementations§
Source§impl ValidatedEmbeddingBatch
impl ValidatedEmbeddingBatch
Sourcepub fn rows(&self) -> &[EmbeddingBatchRow]
pub fn rows(&self) -> &[EmbeddingBatchRow]
Canonical rows sorted by raw UUID bytes.
Sourcepub const fn dimension(&self) -> usize
pub const fn dimension(&self) -> usize
Fixed vector width retained even when the complete projection is empty.
Sourcepub const fn content_digest(&self) -> EmbeddingContentDigest
pub const fn content_digest(&self) -> EmbeddingContentDigest
SHA-256 of canonical UUID and little-endian Float32 bytes.
Sourcepub fn into_rows(self) -> Vec<EmbeddingBatchRow>
pub fn into_rows(self) -> Vec<EmbeddingBatchRow>
Consume the validated wrapper and return canonical rows.
Trait Implementations§
Source§impl Clone for ValidatedEmbeddingBatch
impl Clone for ValidatedEmbeddingBatch
Source§impl Debug for ValidatedEmbeddingBatch
impl Debug for ValidatedEmbeddingBatch
Source§impl PartialEq for ValidatedEmbeddingBatch
impl PartialEq for ValidatedEmbeddingBatch
impl StructuralPartialEq for ValidatedEmbeddingBatch
Auto Trait Implementations§
impl Freeze for ValidatedEmbeddingBatch
impl RefUnwindSafe for ValidatedEmbeddingBatch
impl Send for ValidatedEmbeddingBatch
impl Sync for ValidatedEmbeddingBatch
impl Unpin for ValidatedEmbeddingBatch
impl UnsafeUnpin for ValidatedEmbeddingBatch
impl UnwindSafe for ValidatedEmbeddingBatch
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> 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