Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetConstraint (0.14 sec)

  1. src/go/types/typeparam.go

    	return t.bound
    }
    
    // SetConstraint sets the type constraint for t.
    //
    // It must be called by users of NewTypeParam after the bound's underlying is
    // fully defined, and before using the type parameter in any way other than to
    // form other types. Once SetConstraint returns the receiver, t is safe for
    // concurrent use.
    func (t *TypeParam) SetConstraint(bound Type) {
    	if bound == nil {
    		panic("nil constraint")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeparam.go

    	return t.bound
    }
    
    // SetConstraint sets the type constraint for t.
    //
    // It must be called by users of NewTypeParam after the bound's underlying is
    // fully defined, and before using the type parameter in any way other than to
    // form other types. Once SetConstraint returns the receiver, t is safe for
    // concurrent use.
    func (t *TypeParam) SetConstraint(bound Type) {
    	if bound == nil {
    		panic("nil constraint")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top