- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isReflexive (0.15 sec)
-
src/cmd/compile/internal/types/type.go
var ( IsInt [NTYPE]bool IsFloat [NTYPE]bool IsComplex [NTYPE]bool IsSimple [NTYPE]bool ) var IsOrdered [NTYPE]bool // IsReflexive reports whether t has a reflexive equality operator. // That is, if x==x for all x of type t. func IsReflexive(t *Type) bool { switch t.Kind() { case TBOOL, TINT, TUINT, TINT8, TUINT8, TINT16, TUINT16, TINT32,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/reflect/type.go
return false case Array: tt := (*arrayType)(unsafe.Pointer(t)) return isReflexive(tt.Elem) case Struct: tt := (*structType)(unsafe.Pointer(t)) for _, f := range tt.Fields { if !isReflexive(f.Typ) { return false } } return true default: // Func, Map, Slice, Invalid panic("isReflexive called on non-key type " + stringFor(t)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0)