is Satisfied By
Determines whether a Constraint is satisfied by a Version or not.
Samples
import io.github.z4kn4fein.semver.constraints.Constraint
import io.github.z4kn4fein.semver.constraints.ConstraintSerializer
import io.github.z4kn4fein.semver.constraints.satisfiedBy
import io.github.z4kn4fein.semver.constraints.satisfiedByAll
import io.github.z4kn4fein.semver.constraints.satisfiedByAny
import io.github.z4kn4fein.semver.constraints.toConstraint
import io.github.z4kn4fein.semver.constraints.toConstraintOrNull
import io.github.z4kn4fein.semver.toVersion
import kotlinx.serialization.json.Json
fun main() {
//sampleStart
val constraint = ">=1.1.0".toConstraint()
val version = "1.1.0".toVersion()
print("$constraint satisfiedBy $version? ${constraint satisfiedBy version}")
//sampleEnd
}