diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /servo/components/selectors/kleene_value.rs | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'servo/components/selectors/kleene_value.rs')
-rw-r--r-- | servo/components/selectors/kleene_value.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servo/components/selectors/kleene_value.rs b/servo/components/selectors/kleene_value.rs index 58141c1156..96d6457e60 100644 --- a/servo/components/selectors/kleene_value.rs +++ b/servo/components/selectors/kleene_value.rs @@ -38,6 +38,7 @@ impl KleeneValue { /// Return true if any result of f() is true. Otherwise, return the strongest value seen. /// Returns false if empty, like that of `Iterator`. + #[inline(always)] pub fn any<T>( iter: impl Iterator<Item = T>, f: impl FnMut(T) -> Self, @@ -47,6 +48,7 @@ impl KleeneValue { /// Return false if any results of f() is false. Otherwise, return the strongest value seen. /// Returns true if empty, opposite of `Iterator`. + #[inline(always)] pub fn any_false<T>( iter: impl Iterator<Item = T>, f: impl FnMut(T) -> Self, @@ -54,6 +56,7 @@ impl KleeneValue { Self::any_value(iter, Self::False, Self::True, f) } + #[inline(always)] fn any_value<T>( iter: impl Iterator<Item = T>, value: Self, |