Skip to content

Constraints do not natively support the case were no values are allowed #442

@Nicceboy

Description

@Nicceboy

Sometimes intersection of two constraints can lead into situation where the resulting constraint does not allow any values.

Currently this is solved by either adding impossible value range constraint or a size constraint with zero size, but this should be more explicit.

Maybe this could be even compile-time error, but I am not sure if there are valid use cases.

Value constraint currently:

Bounded::Range {
    start: Some(1),
    end: Some(-1),
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions