Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for OpaqueType (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/ip.go

    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    )
    
    // IP provides a CEL representation of an IP address.
    type IP struct {
    	netip.Addr
    }
    
    var (
    	IPType = cel.OpaqueType("net.IP")
    )
    
    // ConvertToNative implements ref.Val.ConvertToNative.
    func (d IP) ConvertToNative(typeDesc reflect.Type) (any, error) {
    	if reflect.TypeOf(d.Addr).AssignableTo(typeDesc) {
    		return d.Addr, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 11:02:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/cidr.go

    	"github.com/google/cel-go/common/types/ref"
    )
    
    // CIDR provides a CEL representation of an network address.
    type CIDR struct {
    	netip.Prefix
    }
    
    var (
    	CIDRType = cel.OpaqueType("net.CIDR")
    )
    
    // ConvertToNative implements ref.Val.ConvertToNative.
    func (d CIDR) ConvertToNative(typeDesc reflect.Type) (any, error) {
    	if reflect.TypeOf(d.Prefix).AssignableTo(typeDesc) {
    		return d.Prefix, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_ops.td

    //===----------------------------------------------------------------------===//
    // Type definitions
    //===----------------------------------------------------------------------===//
    def TfTensorType : OpaqueType<"tfd", "tf_tensor", "!tfd.tf_tensor type">;
    
    //===----------------------------------------------------------------------===//
    // Runtime Fallback Dialect definitions
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top