Enum ClassSet
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: &Self) -> &SpanReturn the span of this character class set.
impl Clone for ClassSet
fn clone(self: &Self) -> ClassSet
impl Debug for ClassSet
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Drop for ClassSet
fn drop(self: &mut Self)
impl Eq for ClassSet
impl Freeze for ClassSet
impl PartialEq for ClassSet
fn eq(self: &Self, other: &ClassSet) -> bool
impl RefUnwindSafe for ClassSet
impl Send for ClassSet
impl StructuralPartialEq for ClassSet
impl Sync for ClassSet
impl Unpin for ClassSet
impl UnsafeUnpin for ClassSet
impl UnwindSafe for ClassSet
impl<T> Any for ClassSet
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ClassSet
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ClassSet
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for ClassSet
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for ClassSet
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ClassSet
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for ClassSet
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ClassSet
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ClassSet
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>