Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,015 for typeSet (0.26 sec)

  1. docs/en/mkdocs.insiders.yml

    plugins:
      social:
        cards_layout_dir: ../en/layouts
        cards_layout: custom
        cards_layout_options:
          logo: ../en/docs/img/icon-white.svg
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 00:56:59 UTC 2024
    - 159 bytes
    - Viewed (0)
  2. src/go/types/typeparam.go

    func (t *TypeParam) is(f func(*term) bool) bool {
    	return t.iface().typeSet().is(f)
    }
    
    // underIs calls f with the underlying types of the specific type terms
    // of t's constraint and reports whether all calls to f returned true.
    // If there are no specific terms, underIs returns the result of f(nil).
    func (t *TypeParam) underIs(f func(Type) bool) bool {
    	return t.iface().typeSet().underIs(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/TypeToken.java

       *
       * @since 13.0
       */
      public class TypeSet extends ForwardingSet<TypeToken<? super T>> implements Serializable {
    
        @CheckForNull private transient ImmutableSet<TypeToken<? super T>> types;
    
        TypeSet() {}
    
        /** Returns the types that are interfaces implemented by this type. */
        public TypeSet interfaces() {
          return new InterfaceSet(this);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/TypeToken.java

       *
       * @since 13.0
       */
      public class TypeSet extends ForwardingSet<TypeToken<? super T>> implements Serializable {
    
        @CheckForNull private transient ImmutableSet<TypeToken<? super T>> types;
    
        TypeSet() {}
    
        /** Returns the types that are interfaces implemented by this type. */
        public TypeSet interfaces() {
          return new InterfaceSet(this);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/typestring.go

    		}
    
    	default:
    		// For externally defined implementations of Type.
    		// Note: In this case cycles won't be caught.
    		w.string(t.String())
    	}
    }
    
    // typeSet writes a canonical hash for an interface type set.
    func (w *typeWriter) typeSet(s *_TypeSet) {
    	assert(w.ctxt != nil)
    	first := true
    	for _, m := range s.methods {
    		if !first {
    			w.byte(';')
    		}
    		first = false
    		w.string(m.name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. src/go/types/typestring.go

    		}
    
    	default:
    		// For externally defined implementations of Type.
    		// Note: In this case cycles won't be caught.
    		w.string(t.String())
    	}
    }
    
    // typeSet writes a canonical hash for an interface type set.
    func (w *typeWriter) typeSet(s *_TypeSet) {
    	assert(w.ctxt != nil)
    	first := true
    	for _, m := range s.methods {
    		if !first {
    			w.byte(';')
    		}
    		first = false
    		w.string(m.name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. src/go/types/predicates.go

    			if reportf != nil {
    				reportf("%s cannot be compared", t)
    			}
    			return false
    		}
    		return true
    	case *Interface:
    		if dynamic && !isTypeParam(T) || t.typeSet().IsComparable(seen) {
    			return true
    		}
    		if reportf != nil {
    			if t.typeSet().IsEmpty() {
    				reportf("empty type set")
    			} else {
    				reportf("incomparable types in type set")
    			}
    		}
    		// fallthrough
    	}
    	return false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/go/types/typeset_test.go

    		}
    		T, ok := under(obj.Type()).(*Interface)
    		if !ok {
    			t.Fatalf("%s: %v is not an interface (invalid test case)", body, obj)
    		}
    
    		// verify test case
    		got := T.typeSet().String()
    		if got != want {
    			t.Errorf("%s: got %s; want %s", body, got, want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 07 21:37:14 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/typeparam.go

    func (t *TypeParam) is(f func(*term) bool) bool {
    	return t.iface().typeSet().is(f)
    }
    
    // underIs calls f with the underlying types of the specific type terms
    // of t's constraint and reports whether all calls to f returned true.
    // If there are no specific terms, underIs returns the result of f(nil).
    func (t *TypeParam) underIs(f func(Type) bool) bool {
    	return t.iface().typeSet().underIs(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/predicates.go

    			if reportf != nil {
    				reportf("%s cannot be compared", t)
    			}
    			return false
    		}
    		return true
    	case *Interface:
    		if dynamic && !isTypeParam(T) || t.typeSet().IsComparable(seen) {
    			return true
    		}
    		if reportf != nil {
    			if t.typeSet().IsEmpty() {
    				reportf("empty type set")
    			} else {
    				reportf("incomparable types in type set")
    			}
    		}
    		// fallthrough
    	}
    	return false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top