# 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` 1.0.0

### `impl PartialOrd<u8> for ByteRange`

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

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

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

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

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

### `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)`1.0.0

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)