pub struct EmbeddingSpace {
pub vectors: Vec<Vec<f32>>,
pub labels: Vec<String>,
pub dim: usize,
}Expand description
A collection of embedding vectors with optional labels.
Fields§
§vectors: Vec<Vec<f32>>§labels: Vec<String>§dim: usizeImplementations§
Trait Implementations§
Source§impl Clone for EmbeddingSpace
impl Clone for EmbeddingSpace
Source§fn clone(&self) -> EmbeddingSpace
fn clone(&self) -> EmbeddingSpace
Returns a duplicate of the value. Read more
1.0.0 · 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 EmbeddingSpace
impl RefUnwindSafe for EmbeddingSpace
impl Send for EmbeddingSpace
impl Sync for EmbeddingSpace
impl Unpin for EmbeddingSpace
impl UnsafeUnpin for EmbeddingSpace
impl UnwindSafe for EmbeddingSpace
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