Enum logic_parser::parsing::ASTNode
source · pub enum ASTNode {
Identifier {
name: String,
},
Literal {
value: bool,
},
Not {
operand: Box<ASTNode>,
},
And {
left: Box<ASTNode>,
right: Box<ASTNode>,
},
Or {
left: Box<ASTNode>,
right: Box<ASTNode>,
},
Implies {
left: Box<ASTNode>,
right: Box<ASTNode>,
},
IfAndOnlyIf {
left: Box<ASTNode>,
right: Box<ASTNode>,
},
}
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ASTNode
impl Send for ASTNode
impl Sync for ASTNode
impl Unpin for ASTNode
impl UnwindSafe for ASTNode
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