slang::ast::SequenceRange struct

Represents a range of potential sequence matches.

Public functions

auto canIntersect(const SequenceRange& other) const -> bool
Determines whether this range can intersect with other.
auto canBeWithin(const SequenceRange& other) const -> bool
Determines whether this range can be fully contained within other.

Public variables

uint32_t min
The minimum length of the range.
std::optional<uint32_t> max
The maximum length of the range. If unset, the maximum is unbounded.