Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TypeHasNoAlg (0.1 sec)

  1. src/cmd/compile/internal/types/alg.go

    }
    
    // AlgType returns the AlgKind used for comparing and hashing Type t.
    func AlgType(t *Type) AlgKind {
    	CalcSize(t)
    	return t.alg
    }
    
    // TypeHasNoAlg reports whether t does not have any associated hash/eq
    // algorithms because t, or some component of t, is marked Noalg.
    func TypeHasNoAlg(t *Type) bool {
    	return AlgType(t) == ANOALG
    }
    
    // IsComparable reports whether t is a comparable type.
    func IsComparable(t *Type) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 15:30:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/type.go

    	s := typepkg.Lookup(name)
    	typepkgmu.Unlock()
    	return s
    }
    
    func TypeSymName(t *Type) string {
    	name := t.LinkString()
    	// Use a separate symbol name for Noalg types for #17752.
    	if TypeHasNoAlg(t) {
    		name = "noalg." + name
    	}
    	return name
    }
    
    // Fake package for runtime type info (headers)
    // Don't access directly, use typeLookup below.
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top