Enum ClassSet
pub enum ClassSet
A character class set.
This type corresponds to the internal structure of a bracketed character class. That is, every bracketed character is one of two types: a union of items (literals, ranges, other bracketed classes) or a tree of binary set operations.
Variants
-
Item(ClassSetItem) An item, which can be a single literal, range, nested character class or a union of items.
-
BinaryOp(ClassSetBinaryOp) A single binary operation (i.e., &&, -- or ~~).
Implementations
impl ClassSet
fn union(ast: ClassSetUnion) -> ClassSetBuild a set from a union.
fn span(&self) -> &SpanReturn the span of this character class set.
Trait Implementations
impl Clone for ClassSet
fn clone(&self) -> Self
impl Debug for ClassSet
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Drop for ClassSet
fn drop(&mut self)
impl Eq for ClassSet
impl PartialEq for ClassSet
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for ClassSet
Auto Trait Implementations
impl Freeze for ClassSet
impl RefUnwindSafe for ClassSet
impl Send for ClassSet
impl Sync for ClassSet
impl Unpin for ClassSet
impl UnsafeUnpin for ClassSet
impl UnwindSafe for ClassSet
Blanket Implementations
impl<T> Any for ClassSet
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ClassSet
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ClassSet
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ClassSet
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ClassSet
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ClassSet
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ClassSet
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ClassSet
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ClassSet
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>