MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Equal

Method Equal

ext/network.go:592–598  ·  view source on GitHub ↗

Equal returns true if this CIDR is equal to the other ref.Val.

(other ref.Val)

Source from the content-addressed store, hash-verified

590
591// Equal returns true if this CIDR is equal to the other ref.Val.
592func (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.
601func (c CIDR) Type() ref.Type {

Callers

nothing calls this directly

Calls 1

BoolTypeAlias · 0.92

Tested by

no test coverage detected