Skip to content

How do I validate a single type for multiple constraints? #247

Closed Answered by Iltotore
i-am-the-slime asked this question in Q&A
Discussion options

You must be logged in to vote

Hello.

Can you provide the definition of your PlatformOib?

Anyway I think you are looking for refineFurther variants. There is an example in the docs IIRC.

When you just want to cast a raw value to its constrained form without actually checking the constraint, you should use assume.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@i-am-the-slime
Comment options

@Iltotore
Comment options

@i-am-the-slime
Comment options

Answer selected by Iltotore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants