pub struct FtsToken {
pub text: String,
pub position: usize,
pub kind: TokenKind,
pub is_stop: bool,
pub synonyms: Vec<String>,
pub trigrams: Vec<String>,
}Expand description
A token produced by the FTS pipeline, ready for lexeme indexing.
Fields§
§text: StringThe token text (owned; may be normalised).
position: usizeOrdinal position in the token sequence (0-based, gaps for whitespace).
kind: TokenKindScript / category of the original token.
is_stop: booltrue if this token matches the stopword list.
synonyms: Vec<String>Synonym expansions (empty if none configured or no match).
trigrams: Vec<String>Character trigrams — populated only for TokenKind::Unknown tokens.
Trait Implementations§
impl Eq for FtsToken
impl StructuralPartialEq for FtsToken
Auto Trait Implementations§
impl Freeze for FtsToken
impl RefUnwindSafe for FtsToken
impl Send for FtsToken
impl Sync for FtsToken
impl Unpin for FtsToken
impl UnsafeUnpin for FtsToken
impl UnwindSafe for FtsToken
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