pub struct TextDigest(/* private fields */);Expand description
The digest of the exact bytes sent to the embedder for one chunk. With the model’s identity it is the key of one vector.
The embedded text includes the file’s path, so the same symbol at two paths has two keys; the same path and text in any checkout of the family shares one.
Implementations§
Trait Implementations§
Source§impl Clone for TextDigest
impl Clone for TextDigest
impl Copy for TextDigest
Source§impl Debug for TextDigest
impl Debug for TextDigest
Source§impl Display for TextDigest
impl Display for TextDigest
impl Eq for TextDigest
Source§impl Hash for TextDigest
impl Hash for TextDigest
Source§impl HeapBytes for TextDigest
impl HeapBytes for TextDigest
Source§fn heap_bytes(&self, _seen: &mut Seen) -> usize
fn heap_bytes(&self, _seen: &mut Seen) -> usize
The bytes this value owns on the heap; an allocation
seen has
already counted adds nothing.Source§impl Ord for TextDigest
impl Ord for TextDigest
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TextDigest
impl PartialEq for TextDigest
Source§impl PartialOrd for TextDigest
impl PartialOrd for TextDigest
impl StructuralPartialEq for TextDigest
Auto Trait Implementations§
impl Forget for TextDigest
impl Freeze for TextDigest
impl Move for TextDigest
impl RefUnwindSafe for TextDigest
impl Send for TextDigest
impl Sync for TextDigest
impl Unpin for TextDigest
impl UnsafeUnpin for TextDigest
impl UnwindSafe for TextDigest
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