pub enum Codes<'a> {
None,
U32(&'a [u32]),
I64(&'a [i64]),
Usize(&'a [usize]),
}Expand description
A document’s per-token centroid ids, in whatever integer width the host
stores them. Codes::None is valid when the Scorer carries no
centroid term.
Variants§
None
No centroid ids (only valid without a centroid term).
U32(&'a [u32])
u32 ids.
I64(&'a [i64])
i64 ids (next-plaid’s on-disk width). Negative values fail range checks.
Usize(&'a [usize])
usize ids.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Codes<'a>
impl<'a> RefUnwindSafe for Codes<'a>
impl<'a> Send for Codes<'a>
impl<'a> Sync for Codes<'a>
impl<'a> Unpin for Codes<'a>
impl<'a> UnsafeUnpin for Codes<'a>
impl<'a> UnwindSafe for Codes<'a>
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