- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsComparable (0.12 sec)
-
src/cmd/compile/internal/types/alg.go
return AlgType(t) == ANOALG } // IsComparable reports whether t is a comparable type. func IsComparable(t *Type) bool { a := AlgType(t) return a != ANOEQ && a != ANOALG } // IncomparableField returns an incomparable Field of struct Type t, if any. func IncomparableField(t *Type) *Field { for _, f := range t.Fields() { if !IsComparable(f.Type) { return f } } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 15:30:00 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/interface.go
// Empty reports whether t is the empty interface. func (t *Interface) Empty() bool { return t.typeSet().IsAll() } // IsComparable reports whether each type in interface t's type set is comparable. func (t *Interface) IsComparable() bool { return t.typeSet().IsComparable(nil) } // IsMethodSet reports whether the interface t is fully described by its method set.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 6.2K bytes - Viewed (0) -
src/errors/wrap.go
// compare err and the target and not call [Unwrap] on either. func Is(err, target error) bool { if err == nil || target == nil { return err == target } isComparable := reflectlite.TypeOf(target).Comparable() return is(err, target, isComparable) } func is(err, target error, targetComparable bool) bool { for { if targetComparable && err == target { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:04 UTC 2024 - 4.3K bytes - Viewed (0) -
src/go/types/interface.go
// Empty reports whether t is the empty interface. func (t *Interface) Empty() bool { return t.typeSet().IsAll() } // IsComparable reports whether each type in interface t's type set is comparable. func (t *Interface) IsComparable() bool { return t.typeSet().IsComparable(nil) } // IsMethodSet reports whether the interface t is fully described by its method // set.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 8.1K bytes - Viewed (0)