(other ref.Val)
| 335 | } |
| 336 | |
| 337 | func (pn celPkixName) Equal(other ref.Val) ref.Val { |
| 338 | if o, ok := other.Value().(string); ok { |
| 339 | return types.Bool(pn.Name.String() == o) |
| 340 | } |
| 341 | return types.ValOrErr(other, "%v is not comparable type", other) |
| 342 | } |
| 343 | func (celPkixName) Type() ref.Type { return pkixNameCELType } |
| 344 | func (pn celPkixName) Value() any { return pn } |
| 345 |