14 lines
331 B
Text
14 lines
331 B
Text
|
```doc
|
||
|
# Bitwise Xor
|
||
|
|
||
|
Values which wish to implement the `^` infix operator must implement this protocol.
|
||
|
```
|
||
|
protocol BitwiseXor, as:
|
||
|
```doc
|
||
|
Xor `lhs` and `rhs` together, returning an option.
|
||
|
|
||
|
It is left up to the implementer to define when it should return `Some` or `None`.
|
||
|
```
|
||
|
def or(lhs: Self, rhs: Any): Option
|
||
|
end
|