pub struct DocEmbedBlockRef {
pub content_hash: String,
pub ctx: String,
pub tokens: u64,
}Expand description
A block’s contribution to a pooled document vector (§2.5): where its cached vector is keyed and its weight.
Fields§
§content_hash: StringThe block’s raw_hash, hex.
ctx: String§tokens: u64estimate_tokens(text).
Trait Implementations§
Source§impl Clone for DocEmbedBlockRef
impl Clone for DocEmbedBlockRef
Source§fn clone(&self) -> DocEmbedBlockRef
fn clone(&self) -> DocEmbedBlockRef
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 DocEmbedBlockRef
impl Debug for DocEmbedBlockRef
impl Eq for DocEmbedBlockRef
Source§impl PartialEq for DocEmbedBlockRef
impl PartialEq for DocEmbedBlockRef
impl StructuralPartialEq for DocEmbedBlockRef
Auto Trait Implementations§
impl Freeze for DocEmbedBlockRef
impl RefUnwindSafe for DocEmbedBlockRef
impl Send for DocEmbedBlockRef
impl Sync for DocEmbedBlockRef
impl Unpin for DocEmbedBlockRef
impl UnsafeUnpin for DocEmbedBlockRef
impl UnwindSafe for DocEmbedBlockRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.