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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for ClassSetRange

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>