Struct ClassAscii

pub struct ClassAscii { pub span: Span, pub kind: ClassAsciiKind, pub negated: bool }

An ASCII character class.

Fields

span: Span

The span of this class.

kind: ClassAsciiKind

The kind of ASCII class.

negated: bool

Whether the class is negated or not. e.g., [[:alpha:]] is not negated but [[:^alpha:]] is.

Trait Implementations

impl Clone for ClassAscii

fn clone(&self) -> Self

impl Debug for ClassAscii

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

impl Eq for ClassAscii

impl PartialEq for ClassAscii

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

impl StructuralPartialEq for ClassAscii

Auto Trait Implementations

impl Freeze for ClassAscii

impl RefUnwindSafe for ClassAscii

impl Send for ClassAscii

impl Sync for ClassAscii

impl Unpin for ClassAscii

impl UnsafeUnpin for ClassAscii

impl UnwindSafe for ClassAscii

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for ClassAscii

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T, U> Into<U> for ClassAscii 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 ClassAscii where U: Into<T>,

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

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

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