Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 50 for MapType (0.11 sec)

  1. src/runtime/type.go

    		}
    		return res
    	}
    	res := md.textAddr(uint32(off))
    	return unsafe.Pointer(res)
    }
    
    type uncommontype = abi.UncommonType
    
    type interfacetype = abi.InterfaceType
    
    type maptype = abi.MapType
    
    type arraytype = abi.ArrayType
    
    type chantype = abi.ChanType
    
    type slicetype = abi.SliceType
    
    type functype = abi.FuncType
    
    type ptrtype = abi.PtrType
    
    type name = abi.Name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/value.go

    	return celBool(found)
    }
    
    // ConvertToType converts the MapValue to another CEL type, if possible.
    func (m *MapValue) ConvertToType(t ref.Type) ref.Val {
    	switch t {
    	case types.MapType:
    		return m
    	case types.TypeType:
    		return types.MapType
    	}
    	return types.NewErr("type conversion error from '%s' to '%s'", m.Type(), t)
    }
    
    // Equal returns true if the maps are of the same size, have the same keys, and the key-values
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    }
    
    // MapIsCorrelatable returns true if the mapType can be used to correlate the data elements of a map after an update
    // with the data elements of the map from before the updated.
    func MapIsCorrelatable(mapType *string) bool {
    	// if a third map type is introduced, assume it's not correlatable. granular is the default if unspecified.
    	return mapType == nil || *mapType == "granular" || *mapType == "atomic"
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go

    			Generic: schema.Generic{
    				Type: "object",
    			},
    			AdditionalProperties: &schema.StructuralOrBool{},
    		}
    		if d == 1 {
    			return nodeTemplate
    		} else {
    			mapType := generator(d - 1)
    			nodeTemplate.AdditionalProperties.Structural = &mapType
    			return nodeTemplate
    		}
    	}
    	schema := generator(depth)
    	return &schema
    }
    
    func BenchmarkDeeplyNestedSchemaDeclType(b *testing.B) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/openapi/schemas_test.go

    				Type:                 []string{"object"},
    				AdditionalProperties: &spec.SchemaOrBool{},
    			}}
    		if d == 1 {
    			return *nodeTemplate
    		} else {
    			mapType := generator(d - 1)
    			nodeTemplate.AdditionalProperties.Schema = &mapType
    			return *nodeTemplate
    		}
    	}
    	schema := generator(depth)
    	return &schema
    }
    
    func BenchmarkDeeplyNestedSchemaDeclType(b *testing.B) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 14 17:18:27 UTC 2022
    - 13K bytes
    - Viewed (0)
  6. src/go/ast/ast.go

    		Methods    *FieldList // list of embedded interfaces, methods, or types
    		Incomplete bool       // true if (source) methods or types are missing in the Methods list
    	}
    
    	// A MapType node represents a map type.
    	MapType struct {
    		Map   token.Pos // position of "map" keyword
    		Key   Expr
    		Value Expr
    	}
    
    	// A ChanType node represents a channel type.
    	ChanType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

              Type getType() {
                return new TypeToken<Object>() {}.getType();
              }
            }.getType());
      }
    
      public void testStaticContext() {
        assertEquals(Map.class, mapType().getRawType());
      }
    
      private abstract static class Holder<T> {
        Type getContentType() {
          return new TypeToken<T>(getClass()) {}.getType();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

              Type getType() {
                return new TypeToken<Object>() {}.getType();
              }
            }.getType());
      }
    
      public void testStaticContext() {
        assertEquals(Map.class, mapType().getRawType());
      }
    
      private abstract static class Holder<T> {
        Type getContentType() {
          return new TypeToken<T>(getClass()) {}.getType();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    	case *ast.KeyValueExpr:
    		children = append(children,
    			tok(n.Colon, len(":")))
    
    	case *ast.LabeledStmt:
    		children = append(children,
    			tok(n.Colon, len(":")))
    
    	case *ast.MapType:
    		children = append(children,
    			tok(n.Map, len("map")))
    
    	case *ast.ParenExpr:
    		children = append(children,
    			tok(n.Lparen, len("(")),
    			tok(n.Rparen, len(")")))
    
    	case *ast.RangeStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  10. src/encoding/gob/doc.go

    description, constructed from these types:
    
    	type wireType struct {
    		ArrayT           *ArrayType
    		SliceT           *SliceType
    		StructT          *StructType
    		MapT             *MapType
    		GobEncoderT      *gobEncoderType
    		BinaryMarshalerT *gobEncoderType
    		TextMarshalerT   *gobEncoderType
    
    	}
    	type arrayType struct {
    		CommonType
    		Elem typeId
    		Len  int
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top