MCPcopy
hub / github.com/expr-lang/expr / Equal

Method Equal

types/types.go:83–91  ·  view source on GitHub ↗
(t Type)

Source from the content-addressed store, hash-verified

81}
82
83func (r rtype) Equal(t Type) bool {
84 if t == Any {
85 return true
86 }
87 if rt, ok := t.(rtype); ok {
88 return r.t.String() == rt.t.String()
89 }
90 return false
91}
92
93func (r rtype) String() string {
94 return r.t.String()

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected