ClassSet in regex_syntax::ast - Rust (original) (raw)
pub enum ClassSet {
Item(ClassSetItem),
BinaryOp(ClassSetBinaryOp),
}
Expand description
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.
An item, which can be a single literal, range, nested character class or a union of items.
A single binary operation (i.e., &&, – or ~~).
Generate an arbitrary value of Self
from the given unstructured data. Read more
Generate an arbitrary value of Self
from the entirety of the given unstructured data. Read more
Get a size hint for how many bytes out of an Unstructured
this type needs to construct itself. Read more
Get a size hint for how many bytes out of an Unstructured
this type needs to construct itself. Read more
A custom Drop
impl is used for ClassSet
such that it uses constant stack space but heap space proportional to the depth of the ClassSet
.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.