[][src]Struct regex_syntax::ByteRange

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: u8

The start byte of the range.

This must be less than or equal to end.

end: u8

The end byte of the range.

This must be greater than or equal to end.

Trait Implementations

impl Clone for ByteRange[src]

impl Copy for ByteRange[src]

impl Eq for ByteRange[src]

impl Ord for ByteRange[src]

impl PartialEq<ByteRange> for ByteRange[src]

impl PartialEq<u8> for ByteRange[src]

impl PartialEq<ByteRange> for u8[src]

impl PartialOrd<ByteRange> for ByteRange[src]

impl PartialOrd<u8> for ByteRange[src]

impl PartialOrd<ByteRange> for u8[src]

impl Display for ByteRange[src]

impl Debug for ByteRange[src]

impl StructuralPartialEq for ByteRange[src]

impl StructuralEq for ByteRange[src]

Auto Trait Implementations

impl Send for ByteRange

impl Sync for ByteRange

impl Unpin for ByteRange

impl UnwindSafe for ByteRange

impl RefUnwindSafe for ByteRange

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]