pub(crate) struct ExprNode {
pub(crate) node_type: ExprType,
pub(crate) compiled: Option<Regex>,
pub(crate) left: Option<Box<ExprNode>>,
pub(crate) right: Option<Box<ExprNode>>,
}Expand description
AST node for expression-based file matching.
Fields§
§node_type: ExprType§compiled: Option<Regex>Pre-compiled regex (leaf nodes only).
left: Option<Box<ExprNode>>Left child (AND/OR) or sole child (NOT).
right: Option<Box<ExprNode>>Right child (AND/OR only).
Implementations§
Auto Trait Implementations§
impl Freeze for ExprNode
impl RefUnwindSafe for ExprNode
impl Send for ExprNode
impl Sync for ExprNode
impl Unpin for ExprNode
impl UnwindSafe for ExprNode
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