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