aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-semver/src/constraint
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-17 01:31:45 +0900
committernsfisis <nsfisis@gmail.com>2026-05-17 01:31:45 +0900
commitccc62145d5ca22d22ff01bf387d6fd3d27ab87b5 (patch)
treef83eaec9bddcc6d461667784e65e757b040cd2b4 /crates/shirabe-semver/src/constraint
parent910d1060c7ce98d01017d6239eaad600b6830cf0 (diff)
downloadphp-shirabe-ccc62145d5ca22d22ff01bf387d6fd3d27ab87b5.tar.gz
php-shirabe-ccc62145d5ca22d22ff01bf387d6fd3d27ab87b5.tar.zst
php-shirabe-ccc62145d5ca22d22ff01bf387d6fd3d27ab87b5.zip
feat(port): port Intervals.php
Add Clone derives to Constraint, Interval, and DevConstraintSet (needed for IntervalCollection). Add preg_match/preg_replace/preg_split stubs to shirabe-php-shim. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-semver/src/constraint')
-rw-r--r--crates/shirabe-semver/src/constraint/constraint.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe-semver/src/constraint/constraint.rs b/crates/shirabe-semver/src/constraint/constraint.rs
index 68adba9..e35b3e4 100644
--- a/crates/shirabe-semver/src/constraint/constraint.rs
+++ b/crates/shirabe-semver/src/constraint/constraint.rs
@@ -8,7 +8,7 @@ use shirabe_php_shim as php;
use crate::constraint::bound::Bound;
use crate::constraint::constraint_interface::ConstraintInterface;
-#[derive(Debug)]
+#[derive(Debug, Clone)]
pub struct Constraint {
pub(crate) operator: i64,
pub(crate) version: String,