Equal returns true if this CIDR is equal to the other ref.Val.
(other ref.Val)
| 590 | |
| 591 | // Equal returns true if this CIDR is equal to the other ref.Val. |
| 592 | func (c CIDR) Equal(other ref.Val) ref.Val { |
| 593 | o, ok := other.(CIDR) |
| 594 | if !ok { |
| 595 | return types.False |
| 596 | } |
| 597 | return types.Bool(c.Prefix == o.Prefix) |
| 598 | } |
| 599 | |
| 600 | // Type returns the CEL type of the CIDR. |
| 601 | func (c CIDR) Type() ref.Type { |