pub struct EmbeddingMapper<P> { /* private fields */ }Expand description
Adapts any Projection into a DimensionMapper for use with
sphereql-layout’s layout strategies (Uniform, Clustered, ForceDirected).
Implementations§
Source§impl<P> EmbeddingMapper<P>
impl<P> EmbeddingMapper<P>
pub fn new(projection: P) -> Self
pub fn projection(&self) -> &P
Trait Implementations§
Source§impl<P: Projection> DimensionMapper for EmbeddingMapper<P>
impl<P: Projection> DimensionMapper for EmbeddingMapper<P>
Auto Trait Implementations§
impl<P> Freeze for EmbeddingMapper<P>where
P: Freeze,
impl<P> RefUnwindSafe for EmbeddingMapper<P>where
P: RefUnwindSafe,
impl<P> Send for EmbeddingMapper<P>where
P: Send,
impl<P> Sync for EmbeddingMapper<P>where
P: Sync,
impl<P> Unpin for EmbeddingMapper<P>where
P: Unpin,
impl<P> UnsafeUnpin for EmbeddingMapper<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for EmbeddingMapper<P>where
P: UnwindSafe,
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