Enum regex_syntax::ast::ClassSet
source · [−]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.
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
Trait Implementations
sourceimpl Drop for ClassSet
impl Drop for ClassSet
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
.
impl Eq for ClassSet
impl StructuralEq for ClassSet
impl StructuralPartialEq for ClassSet
Auto Trait Implementations
impl RefUnwindSafe for ClassSet
impl Send for ClassSet
impl Sync for ClassSet
impl Unpin for ClassSet
impl UnwindSafe for ClassSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more