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

Method Equal

ext/network.go:538–544  ·  view source on GitHub ↗

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

(other ref.Val)

Source from the content-addressed store, hash-verified

536
537// Equal returns true if this IP is equal to the other ref.Val.
538func (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.
547func (i IP) Type() ref.Type {

Callers

nothing calls this directly

Calls 1

BoolTypeAlias · 0.92

Tested by

no test coverage detected