18 lines
349 B
Rust
Raw Normal View History

2024-06-05 20:41:00 +02:00
#[derive(Debug, Copy, Clone, PartialEq)]
pub enum BinaryOperator {
Implication,
Or,
And,
}
impl From<BinaryOperator> for &str {
fn from(op: BinaryOperator) -> Self {
match op {
BinaryOperator::Implication => "=>",
BinaryOperator::Or => "|",
BinaryOperator::And => "&",
}
}
}