Struct regex_syntax::ClassRange
[−]
[src]
pub struct ClassRange { pub start: char, pub end: char, }
A single inclusive range in a character class.
Since range boundaries are defined by Unicode scalar values, the boundaries
can never be in the open interval (0xD7FF, 0xE000)
. However, a range may
cover codepoints that are not scalar values.
Note that this has a few convenient impls on PartialEq
and PartialOrd
for testing whether a character is contained inside a given range.
Fields
start | The start character of the range. This must be less than or equal to |
end | The end character of the range. This must be greater than or equal to |