Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for haveIdenticalUnderlyingType (0.28 sec)

  1. src/internal/reflectlite/type.go

    	return haveIdenticalUnderlyingType(T, V, true)
    }
    
    func haveIdenticalType(T, V *abi.Type, cmpTags bool) bool {
    	if cmpTags {
    		return T == V
    	}
    
    	if toRType(T).Name() != toRType(V).Name() || T.Kind() != V.Kind() {
    		return false
    	}
    
    	return haveIdenticalUnderlyingType(T, V, false)
    }
    
    func haveIdenticalUnderlyingType(T, V *abi.Type, cmpTags bool) bool {
    	if T == V {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. src/reflect/type.go

    	// x's type T and V must have identical underlying types.
    	return haveIdenticalUnderlyingType(T, V, true)
    }
    
    func haveIdenticalType(T, V *abi.Type, cmpTags bool) bool {
    	if cmpTags {
    		return T == V
    	}
    
    	if nameFor(T) != nameFor(V) || T.Kind() != V.Kind() || pkgPathFor(T) != pkgPathFor(V) {
    		return false
    	}
    
    	return haveIdenticalUnderlyingType(T, V, false)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  3. src/reflect/value.go

    		}
    	}
    
    	// dst and src have same underlying type.
    	if haveIdenticalUnderlyingType(dst, src, false) {
    		return cvtDirect
    	}
    
    	// dst and src are non-defined pointer types with same underlying base type.
    	if dst.Kind() == abi.Pointer && nameFor(dst) == "" &&
    		src.Kind() == abi.Pointer && nameFor(src) == "" &&
    		haveIdenticalUnderlyingType(elem(dst), elem(src), false) {
    		return cvtDirect
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top