pub struct Embedding { /* private fields */ }Expand description
Wrapped embedding representation.
See module-level documentation for more details.
Implementationsยง
Trait Implementationsยง
Sourceยงimpl From<[f32; 1024]> for Embedding
impl From<[f32; 1024]> for Embedding
Sourceยงfn from(inner: EmbeddingRaw) -> Self
fn from(inner: EmbeddingRaw) -> Self
Convert [f32; 1024] to Embedding.
Sourceยงimpl From<[u8; 4096]> for Embedding
impl From<[u8; 4096]> for Embedding
Sourceยงfn from(bytes: EmbeddingBytes) -> Self
fn from(bytes: EmbeddingBytes) -> Self
Convert 1024 * 4 bytes to Embedding (little-endian).
Sourceยงimpl From<Embedding> for EmbeddingBytes
impl From<Embedding> for EmbeddingBytes
impl StructuralPartialEq for Embedding
Auto Trait Implementationsยง
impl Freeze for Embedding
impl RefUnwindSafe for Embedding
impl Send for Embedding
impl Sync for Embedding
impl Unpin for Embedding
impl UnwindSafe for Embedding
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