Struct regex_syntax::ByteRange [] [src]

pub struct ByteRange {
    pub start: u8,
    pub end: u8,
}

A single inclusive range in a byte class.

Note that this has a few convenient impls on PartialEq and PartialOrd for testing whether a byte is contained inside a given range.

Fields

start

The start byte of the range.

This must be less than or equal to end.

end

The end byte of the range.

This must be greater than or equal to end.

Trait Implementations

impl PartialEq<u8> for ByteRange

fn eq(&self, other: &u8) -> bool

fn ne(&self, other: &Rhs) -> bool

impl PartialOrd<u8> for ByteRange

fn partial_cmp(&self, other: &u8) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

impl Display for ByteRange

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Ord for ByteRange

fn cmp(&self, __arg_0: &ByteRange) -> Ordering

impl Eq for ByteRange

impl PartialOrd for ByteRange

fn partial_cmp(&self, __arg_0: &ByteRange) -> Option<Ordering>

fn lt(&self, __arg_0: &ByteRange) -> bool

fn le(&self, __arg_0: &ByteRange) -> bool

fn gt(&self, __arg_0: &ByteRange) -> bool

fn ge(&self, __arg_0: &ByteRange) -> bool

impl PartialEq for ByteRange

fn eq(&self, __arg_0: &ByteRange) -> bool

fn ne(&self, __arg_0: &ByteRange) -> bool

impl Debug for ByteRange

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for ByteRange

impl Clone for ByteRange

fn clone(&self) -> ByteRange

fn clone_from(&mut self, source: &Self)