pub enum QueryItem {
Operand {
word: String,
weight: u8,
prefix: bool,
},
Operator {
op: u8,
distance: u16,
left: u32,
},
}Expand description
One item of a tsquery.
Variants§
Operand
QI_VAL: a lexeme, the bits of its weights, 8 for A down to 1 for D, and true for a prefix match.
Operator
QI_OPR: one of the TSQUERY_ operators. The right operand is the next item, and the left operand is left items after the operator. distance is the distance of <N> and 0 for the other operators.
Trait Implementations§
impl Eq for QueryItem
impl StructuralPartialEq for QueryItem
Auto Trait Implementations§
impl Freeze for QueryItem
impl RefUnwindSafe for QueryItem
impl Send for QueryItem
impl Sync for QueryItem
impl Unpin for QueryItem
impl UnsafeUnpin for QueryItem
impl UnwindSafe for QueryItem
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