Implementing trait with static lifetime bound
The Rust Programming Language Forum
Implementing trait with static lifetime bound
G'day folks, Today I'm working on a dictionary stemmer. The data required for this is several megabytes, so I want to keep as few copies around as possible. There are three traits involved here: You can see my dummy implementation, cribbed from the existing token filters, here: The PaliDictStemmer creates the StemmerFilter which in turn creates the StemmerTokenStream. I'd like to pass a reference to the TermStems dictionary, but the Tokenizer trait has the 'static trait bound: pub trai...
0 comments
No comments yet.