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 ~~).

Source§

Source§

Generate an arbitrary value of Self from the given unstructured data. Read more

Source§

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more

Source§

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more

Source§

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more

Source§

Source§

Source§

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.

Source§

Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

Source§

§

§

§

§

§

§