pub struct EncodedDocument<V, ST> { /* private fields */ }Expand description
Container class that represents a (vector, attributes) pair where the attributes are represented as u64s.
Implementations§
Source§impl<V, ST> EncodedDocument<V, ST>
impl<V, ST> EncodedDocument<V, ST>
pub fn new(vector: V, attributes: ST) -> Self
pub fn destructure(self) -> (V, ST)
Trait Implementations§
Source§impl<V: Clone, ST: Clone> Clone for EncodedDocument<V, ST>
impl<V: Clone, ST: Clone> Clone for EncodedDocument<V, ST>
Source§fn clone(&self) -> EncodedDocument<V, ST>
fn clone(&self) -> EncodedDocument<V, ST>
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 moreSource§impl<Inner, V> PreprocessedDistanceFunction<EncodedDocument<V, &RoaringTreemap>> for InlineBetaComputer<Inner>where
Inner: PreprocessedDistanceFunction<V>,
impl<Inner, V> PreprocessedDistanceFunction<EncodedDocument<V, &RoaringTreemap>> for InlineBetaComputer<Inner>where
Inner: PreprocessedDistanceFunction<V>,
fn evaluate_similarity( &self, changing: EncodedDocument<V, &RoaringTreemap>, ) -> f32
Source§impl<'this, V, ST> Reborrow<'this> for EncodedDocument<V, ST>where
V: Reborrow<'this>,
See [Accessor::Element]
impl<'this, V, ST> Reborrow<'this> for EncodedDocument<V, ST>where
V: Reborrow<'this>,
See [Accessor::Element]
Auto Trait Implementations§
impl<V, ST> Freeze for EncodedDocument<V, ST>
impl<V, ST> RefUnwindSafe for EncodedDocument<V, ST>where
V: RefUnwindSafe,
ST: RefUnwindSafe,
impl<V, ST> Send for EncodedDocument<V, ST>
impl<V, ST> Sync for EncodedDocument<V, ST>
impl<V, ST> Unpin for EncodedDocument<V, ST>
impl<V, ST> UnsafeUnpin for EncodedDocument<V, ST>where
V: UnsafeUnpin,
ST: UnsafeUnpin,
impl<V, ST> UnwindSafe for EncodedDocument<V, ST>where
V: UnwindSafe,
ST: 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