pub enum ClassExpr {
Items(Vec<ClassItem>),
Union(Vec<ClassExpr>),
Bracket {
negated: bool,
inner: Box<ClassExpr>,
},
Op(SetOp, Box<ClassExpr>, Box<ClassExpr>),
}Expand description
A Rust bracketed class with nesting and set operations.
Variants§
Items(Vec<ClassItem>)
Plain members.
Union(Vec<ClassExpr>)
Union of operands.
Bracket
[...] with optional negation applied after evaluating the inside.
Op(SetOp, Box<ClassExpr>, Box<ClassExpr>)
lhs op rhs, left-associative.
Trait Implementations§
impl Eq for ClassExpr
impl StructuralPartialEq for ClassExpr
Auto Trait Implementations§
impl Forget for ClassExpr
impl Freeze for ClassExpr
impl RefUnwindSafe for ClassExpr
impl Send for ClassExpr
impl Sync for ClassExpr
impl Unpin for ClassExpr
impl UnsafeUnpin for ClassExpr
impl UnwindSafe for ClassExpr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more