Equal returns true if this IP is equal to the other ref.Val.
(other ref.Val)
| 536 | |
| 537 | // Equal returns true if this IP is equal to the other ref.Val. |
| 538 | func (i IP) Equal(other ref.Val) ref.Val { |
| 539 | o, ok := other.(IP) |
| 540 | if !ok { |
| 541 | return types.False |
| 542 | } |
| 543 | return types.Bool(i.Addr == o.Addr) |
| 544 | } |
| 545 | |
| 546 | // Type returns the CEL type of the IP. |
| 547 | func (i IP) Type() ref.Type { |