pub struct TsLexeme {
pub word: String,
pub positions: Vec<u16>,
pub weight: u8,
}Expand description
v7.12.0 — one entry in a Value::TsVector. The lexeme is the
(already-tokenised + stemmed in v7.12.1+) word; positions is
a strictly-ascending list of 1-based positions; weight is the
PG weight letter (A=3, B=2, C=1, D=0) — v7.12.0 defaults every
lexeme to D, the v7.12.2 ranking path consumes the weight.
Fields§
§word: String§positions: Vec<u16>§weight: u8Trait Implementations§
impl Eq for TsLexeme
impl StructuralPartialEq for TsLexeme
Auto Trait Implementations§
impl Freeze for TsLexeme
impl RefUnwindSafe for TsLexeme
impl Send for TsLexeme
impl Sync for TsLexeme
impl Unpin for TsLexeme
impl UnsafeUnpin for TsLexeme
impl UnwindSafe for TsLexeme
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