Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 932 for incomparable (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/types2/interface.go

    // Empty reports whether t is the empty interface.
    func (t *Interface) Empty() bool { return t.typeSet().IsAll() }
    
    // IsComparable reports whether each type in interface t's type set is comparable.
    func (t *Interface) IsComparable() bool { return t.typeSet().IsComparable(nil) }
    
    // IsMethodSet reports whether the interface t is fully described by its method set.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. src/go/types/interface.go

    // Empty reports whether t is the empty interface.
    func (t *Interface) Empty() bool { return t.typeSet().IsAll() }
    
    // IsComparable reports whether each type in interface t's type set is comparable.
    func (t *Interface) IsComparable() bool { return t.typeSet().IsComparable(nil) }
    
    // IsMethodSet reports whether the interface t is fully described by its method
    // set.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/PredicatesTest.java

      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_interface() {
        Predicate<@Nullable Object> isComparable = Predicates.instanceOf(Comparable.class);
    
        assertTrue(isComparable.apply(1));
        assertTrue(isComparable.apply(2.0f));
        assertTrue(isComparable.apply(""));
        assertFalse(isComparable.apply(null));
      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_equality() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_interface() {
        Predicate<@Nullable Object> isComparable = Predicates.instanceOf(Comparable.class);
    
        assertTrue(isComparable.apply(1));
        assertTrue(isComparable.apply(2.0f));
        assertTrue(isComparable.apply(""));
        assertFalse(isComparable.apply(null));
      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_equality() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/instantiate.go

    	checkComparability := func() bool {
    		if !Ti.IsComparable() {
    			return true
    		}
    		// If T is comparable, V must be comparable.
    		// If V is strictly comparable, we're done.
    		if comparable(V, false /* strict comparability */, nil, nil) {
    			return true
    		}
    		// For constraint satisfaction, use dynamic (spec) comparability
    		// so that ordinary, non-type parameter interfaces implement comparable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. src/go/types/instantiate.go

    	checkComparability := func() bool {
    		if !Ti.IsComparable() {
    			return true
    		}
    		// If T is comparable, V must be comparable.
    		// If V is strictly comparable, we're done.
    		if comparable(V, false /* strict comparability */, nil, nil) {
    			return true
    		}
    		// For constraint satisfaction, use dynamic (spec) comparability
    		// so that ordinary, non-type parameter interfaces implement comparable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> of() {
        return ImmutableSortedSet.of();
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> of(E e) {
        return ImmutableSortedSet.of(e);
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2) {
        return ImmutableSortedSet.of(e1, e2);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 45.1K bytes
    - Viewed (0)
Back to top