[][src]Struct regex_syntax::ClassRange

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

The start character of the range.

This must be less than or equal to end.

end: char

The end character of the range.

This must be greater than or equal to start.

Trait Implementations

impl Clone for ClassRange[src]

impl Copy for ClassRange[src]

impl Eq for ClassRange[src]

impl Ord for ClassRange[src]

impl PartialEq<ClassRange> for ClassRange[src]

impl PartialEq<char> for ClassRange[src]

impl PartialEq<ClassRange> for char[src]

impl PartialOrd<ClassRange> for ClassRange[src]

impl PartialOrd<char> for ClassRange[src]

impl PartialOrd<ClassRange> for char[src]

impl Display for ClassRange[src]

impl Debug for ClassRange[src]

impl StructuralPartialEq for ClassRange[src]

impl StructuralEq for ClassRange[src]

Auto Trait Implementations

impl Send for ClassRange

impl Sync for ClassRange

impl Unpin for ClassRange

impl UnwindSafe for ClassRange

impl RefUnwindSafe for ClassRange

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]