Struct ClassBracketed

struct ClassBracketed { ... }

A bracketed character class, e.g., [a-z0-9].

Fields

span: Span

The span of this class.

negated: bool

Whether this class is negated or not. e.g., [a] is not negated but [^a] is.

kind: ClassSet

The type of this set. A set is either a normal union of things, e.g., [abc] or a result of applying set operations, e.g., [\pL--c].

Implementations

impl Clone for ClassBracketed

fn clone(self: &Self) -> ClassBracketed

impl Debug for ClassBracketed

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

impl Eq for ClassBracketed

impl Freeze for ClassBracketed

impl PartialEq for ClassBracketed

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

impl RefUnwindSafe for ClassBracketed

impl Send for ClassBracketed

impl StructuralPartialEq for ClassBracketed

impl Sync for ClassBracketed

impl Unpin for ClassBracketed

impl UnsafeUnpin for ClassBracketed

impl UnwindSafe for ClassBracketed

impl<T> Any for ClassBracketed

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ClassBracketed

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ClassBracketed

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

impl<T> CloneToUninit for ClassBracketed

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

impl<T> From for ClassBracketed

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for ClassBracketed

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for ClassBracketed

fn into(self: 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 for ClassBracketed

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ClassBracketed

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