You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to resolve this issue here : rust-lang/cargo#5340
But to do that --- without resorting to copying the behavior of VersionReq --- I would need an API that can easily let me check if all of my Predicates in some VersionReq matches some Op.
I would like something like this to be possible,
(semver::VersionReq).contains_op(semver::Op).
I believe this will require couple of changes:
Op is now a public enum
Add a new method contains_op that takes an Op and returns a bool as described above.
Thank you!
The text was updated successfully, but these errors were encountered:
hbina
changed the title
E
Add a method to check if all Predicates in some VersionReq contains some Op
Oct 1, 2019
Hello,
I am trying to resolve this issue here : rust-lang/cargo#5340
But to do that --- without resorting to copying the behavior of
VersionReq
--- I would need an API that can easily let me check if all of myPredicate
s in someVersionReq
matches someOp
.I would like something like this to be possible,
(semver::VersionReq).contains_op(semver::Op)
.I believe this will require couple of changes:
contains_op
that takes anOp
and returns abool
as described above.Thank you!
The text was updated successfully, but these errors were encountered: