#[non_exhaustive]pub enum EmbeddingOutput {
Single(Embedding),
Many(Vec<Embedding>),
}Expand description
Output shape of an embedding operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Single(Embedding)
One vector returned by embed.
Many(Vec<Embedding>)
Vectors returned by embed_many, in input order.
Trait Implementations§
Source§impl Clone for EmbeddingOutput
impl Clone for EmbeddingOutput
Source§fn clone(&self) -> EmbeddingOutput
fn clone(&self) -> EmbeddingOutput
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 moreSource§impl Debug for EmbeddingOutput
impl Debug for EmbeddingOutput
Source§impl PartialEq for EmbeddingOutput
impl PartialEq for EmbeddingOutput
impl StructuralPartialEq for EmbeddingOutput
Auto Trait Implementations§
impl Freeze for EmbeddingOutput
impl RefUnwindSafe for EmbeddingOutput
impl Send for EmbeddingOutput
impl Sync for EmbeddingOutput
impl Unpin for EmbeddingOutput
impl UnsafeUnpin for EmbeddingOutput
impl UnwindSafe for EmbeddingOutput
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