aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-semver/src/constraint/match_all_constraint.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-16 23:43:37 +0900
committernsfisis <nsfisis@gmail.com>2026-05-16 23:43:37 +0900
commit9faf73a18ed1ee8a1c9c20c5adb723791dc7dfdf (patch)
treeb259c66b7bb217330c43369e70e0eca89893c77a /crates/shirabe-semver/src/constraint/match_all_constraint.rs
parentbeecbec6becfaaabcffd5bd9c596c055e64778c1 (diff)
downloadphp-shirabe-9faf73a18ed1ee8a1c9c20c5adb723791dc7dfdf.tar.gz
php-shirabe-9faf73a18ed1ee8a1c9c20c5adb723791dc7dfdf.tar.zst
php-shirabe-9faf73a18ed1ee8a1c9c20c5adb723791dc7dfdf.zip
feat(port): add as_any/is_disjunctive to ConstraintInterface (needed for MultiConstraint)
Diffstat (limited to 'crates/shirabe-semver/src/constraint/match_all_constraint.rs')
-rw-r--r--crates/shirabe-semver/src/constraint/match_all_constraint.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/shirabe-semver/src/constraint/match_all_constraint.rs b/crates/shirabe-semver/src/constraint/match_all_constraint.rs
index e877735..4d7b988 100644
--- a/crates/shirabe-semver/src/constraint/match_all_constraint.rs
+++ b/crates/shirabe-semver/src/constraint/match_all_constraint.rs
@@ -34,6 +34,10 @@ impl ConstraintInterface for MatchAllConstraint {
"*".to_string()
}
+ fn as_any(&self) -> &dyn std::any::Any {
+ self
+ }
+
fn get_upper_bound(&self) -> Bound {
Bound::positive_infinity()
}