Struct ClassBytesRange
pub struct ClassBytesRange { /* private fields */ }
A single range of characters represented by arbitrary bytes.
The range is closed. That is, the start and end of the range are included in the range.
Implementations
impl ClassBytesRange
fn new(start: u8, end: u8) -> ClassBytesRangeCreate a new byte range for a character class.
The returned range is always in a canonical form. That is, the range returned always satisfies the invariant that
start <= end.fn start(&self) -> u8Return the start of this range.
The start of a range is always less than or equal to the end of the range.
fn end(&self) -> u8Return the end of this range.
The end of a range is always greater than or equal to the start of the range.
fn len(&self) -> usizeReturns the number of bytes in this range.
Trait Implementations
impl Clone for ClassBytesRange
fn clone(&self) -> Self
impl Copy for ClassBytesRange
impl Debug for ClassBytesRange
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ClassBytesRange
fn default() -> Self
impl Eq for ClassBytesRange
impl Ord for ClassBytesRange
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for ClassBytesRange
fn eq(&self, other: &Self) -> bool
impl PartialOrd for ClassBytesRange
fn partial_cmp(&self, other: &Self) -> Option<Ordering>