mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 16:58:39 +02:00
Add bit operator: bit-xor
(#5940)
This commit is contained in:
@ -49,7 +49,7 @@ impl Expression {
|
||||
| Operator::In
|
||||
| Operator::NotIn => 80,
|
||||
Operator::BitAnd => 75,
|
||||
// Operator::BitXor => 70,
|
||||
Operator::BitXor => 70,
|
||||
Operator::BitOr => 60,
|
||||
Operator::And => 50,
|
||||
Operator::Or => 40,
|
||||
|
@ -27,6 +27,7 @@ pub enum Operator {
|
||||
StartsWith,
|
||||
EndsWith,
|
||||
BitOr,
|
||||
BitXor,
|
||||
BitAnd,
|
||||
ShiftLeft,
|
||||
ShiftRight,
|
||||
@ -53,6 +54,7 @@ impl Display for Operator {
|
||||
Operator::Or => write!(f, "||"),
|
||||
Operator::Pow => write!(f, "**"),
|
||||
Operator::BitOr => write!(f, "bit-or"),
|
||||
Operator::BitXor => write!(f, "bit-xor"),
|
||||
Operator::BitAnd => write!(f, "bit-and"),
|
||||
Operator::ShiftLeft => write!(f, "bit-shl"),
|
||||
Operator::ShiftRight => write!(f, "bit-shr"),
|
||||
|
Reference in New Issue
Block a user