Struct ClassSetRange

pub struct ClassSetRange { pub span: Span, pub start: Literal, pub end: Literal }

A single character class range in a set.

Fields

span: Span

The span of this range.

start: Literal

The start of this range.

end: Literal

The end of this range.

Implementations

impl ClassSetRange

fn is_valid(&self) -> bool

Returns true if and only if this character class range is valid.

The only case where a range is invalid is if its start is greater than its end.

Trait Implementations

impl Clone for ClassSetRange

fn clone(&self) -> Self

impl Debug for ClassSetRange

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

impl Eq for ClassSetRange

impl PartialEq for ClassSetRange

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

impl StructuralPartialEq for ClassSetRange

Auto Trait Implementations

impl Freeze for ClassSetRange

impl RefUnwindSafe for ClassSetRange

impl Send for ClassSetRange

impl Sync for ClassSetRange

impl Unpin for ClassSetRange

impl UnsafeUnpin for ClassSetRange

impl UnwindSafe for ClassSetRange

Blanket Implementations

impl<T> Any for ClassSetRange where T: 'static + ?Sized,

impl<T> Borrow<T> for ClassSetRange where T: ?Sized,

impl<T> BorrowMut<T> for ClassSetRange where T: ?Sized,

impl<T> CloneToUninit for ClassSetRange where T: Clone,

impl<T> From<T> for ClassSetRange

impl<T> ToOwned for ClassSetRange where T: Clone,

impl<T, U> Into<U> for ClassSetRange where U: From<T>,

impl<T, U> TryFrom<U> for ClassSetRange where U: Into<T>,

impl<T, U> TryInto<U> for ClassSetRange where U: TryFrom<T>,