mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Merge branch 'main' into indexer-edition-2024
This commit is contained in:
commit
6e6acfcf1b
330 changed files with 10063 additions and 1499 deletions
|
@ -96,6 +96,14 @@ impl<T> Setting<T> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns other if self is not set.
|
||||
pub fn or(self, other: Self) -> Self {
|
||||
match self {
|
||||
Setting::Set(_) | Setting::Reset => self,
|
||||
Setting::NotSet => other,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns `true` if applying the new setting changed this setting
|
||||
pub fn apply(&mut self, new: Self) -> bool
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue