532: Add some implementation on MatchBounds r=Kerollmops a=ManyTheFish

Theses Implementations are needed in meilisearch

Co-authored-by: ManyTheFish <many@meilisearch.com>
This commit is contained in:
bors[bot] 2022-05-17 14:50:22 +00:00 committed by GitHub
commit 3389561f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ use std::borrow::Cow;
use matching_words::{MatchType, PartialMatch, PrimitiveWordId};
pub use matching_words::{MatchingWord, MatchingWords};
use meilisearch_tokenizer::token::{SeparatorKind, Token};
use serde::Serialize;
pub mod matching_words;
@ -86,7 +87,7 @@ pub struct Match {
token_position: usize,
}
#[derive(Clone, Debug)]
#[derive(Serialize, Debug, Clone, PartialEq)]
pub struct MatchBounds {
pub start: usize,
pub length: usize,