Linear classifiers group items based on the value of the linear combinations of features.
Within the Rust ecosystem, you can find a few libraries ranging from naive Bayes implementations to support vector machines. These resources can help you get started:
A machine learning library.
A machine learning package for Rust.
Naive Bayes classifier