Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 346 for incomparable (0.17 sec)

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

    	return AlgType(t) == ANOALG
    }
    
    // IsComparable reports whether t is a comparable type.
    func IsComparable(t *Type) bool {
    	a := AlgType(t)
    	return a != ANOEQ && a != ANOALG
    }
    
    // IncomparableField returns an incomparable Field of struct Type t, if any.
    func IncomparableField(t *Type) *Field {
    	for _, f := range t.Fields() {
    		if !IsComparable(f.Type) {
    			return f
    		}
    	}
    	return nil
    }
    
    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/go/types/predicates.go

    }
    
    // Comparable reports whether values of type T are comparable.
    func Comparable(T Type) bool {
    	return comparable(T, true, nil, nil)
    }
    
    // If dynamic is set, non-type parameter interfaces are always comparable.
    // If reportf != nil, it may be used to report why T is not comparable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/predicates.go

    }
    
    // Comparable reports whether values of type T are comparable.
    func Comparable(T Type) bool {
    	return comparable(T, true, nil, nil)
    }
    
    // If dynamic is set, non-type parameter interfaces are always comparable.
    // If reportf != nil, it may be used to report why T is not comparable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. src/net/http/transport.go

    // communicates with the goroutine doing the RoundTrip.
    type responseAndError struct {
    	_   incomparable
    	res *Response // else use this response (see res method)
    	err error
    }
    
    type requestAndChan struct {
    	_    incomparable
    	treq *transportRequest
    	ch   chan responseAndError // unbuffered; always send in select on callerGone
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    		if s != table.want {
    			t.Errorf("constructed array = %s, want %s", s, table.want)
    		}
    
    		if table.comparable != at.Comparable() {
    			t.Errorf("constructed array (%#v) is comparable=%v, want=%v", v.Interface(), at.Comparable(), table.comparable)
    		}
    		if table.comparable {
    			if table.n > 0 {
    				if DeepEqual(vnot.Interface(), v.Interface()) {
    					t.Errorf(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  6. maven-api-impl/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

    org/codehaus/plexus/util/introspection/MethodMap.class package org.codehaus.plexus.util.introspection; public synchronized class MethodMap { private static final int MORE_SPECIFIC = 0; private static final int LESS_SPECIFIC = 1; private static final int INCOMPARABLE = 2; java.util.Map methodByNameMap; public void MethodMap(); public void add(reflect.Method); public java.util.List get(String); public reflect.Method find(String, Object[]) throws MethodMap$AmbiguousException; private static reflect.Method ge...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 164.6K bytes
    - Viewed (0)
  7. src/go/types/typeset.go

    func (s *_TypeSet) IsMethodSet() bool { return !s.comparable && s.terms.isAll() }
    
    // IsComparable reports whether each type in the set is comparable.
    func (s *_TypeSet) IsComparable(seen map[Type]bool) bool {
    	if s.terms.isAll() {
    		return s.comparable
    	}
    	return s.is(func(t *term) bool {
    		return t != nil && comparable(t.typ, false, seen, nil)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/typeset.go

    func (s *_TypeSet) IsMethodSet() bool { return !s.comparable && s.terms.isAll() }
    
    // IsComparable reports whether each type in the set is comparable.
    func (s *_TypeSet) IsComparable(seen map[Type]bool) bool {
    	if s.terms.isAll() {
    		return s.comparable
    	}
    	return s.is(func(t *term) bool {
    		return t != nil && comparable(t.typ, false, seen, nil)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. src/net/http/server.go

    	c := &conn{
    		server: srv,
    		rwc:    rwc,
    	}
    	if debugServerConnections {
    		c.rwc = newLoggingConn("server", c.rwc)
    	}
    	return c
    }
    
    type readResult struct {
    	_   incomparable
    	n   int
    	err error
    	b   byte // byte read, if n == 1
    }
    
    // connReader is the io.Reader wrapper used by *conn. It combines a
    // selectively-activated io.LimitedReader (to bound request header
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  10. src/errors/wrap.go

    // compare err and the target and not call [Unwrap] on either.
    func Is(err, target error) bool {
    	if err == nil || target == nil {
    		return err == target
    	}
    
    	isComparable := reflectlite.TypeOf(target).Comparable()
    	return is(err, target, isComparable)
    }
    
    func is(err, target error, targetComparable bool) bool {
    	for {
    		if targetComparable && err == target {
    			return true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:04 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top