pub enum Node {
Operation(Operator, Box<Node>, Option<Box<Node>>),
Terminal(char, u32),
}
Expand description
The Node
enum represents the different types of nodes that can be used in a regular expression tree.
Variants§
Operation(Operator, Box<Node>, Option<Box<Node>>)
Represents an operation on one or two nodes.
Terminal(char, u32)
char
represents the character, u32
represent the unique identifier of the node.
Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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