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