- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 587 for xelem (0.07 sec)
-
src/go/types/pointer.go
type Pointer struct { base Type // element type } // NewPointer returns a new pointer type for the given element (base) type. func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} } // Elem returns the element type for the given pointer p. func (p *Pointer) Elem() Type { return p.base } func (p *Pointer) Underlying() Type { return p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 761 bytes - Viewed (0) -
test/typeparam/orderedmapsimp.dir/a.go
// the receiver stops reading them. func Ranger[Elem any]() (*Sender[Elem], *Receiver[Elem]) { c := make(chan Elem) d := make(chan struct{}) s := &Sender[Elem]{ values: c, done: d, } r := &Receiver[Elem]{ values: c, done: d, } runtime.SetFinalizer(r, (*Receiver[Elem]).finalize) return s, r } // A Sender is used to send values to a Receiver.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 5.5K bytes - Viewed (0) -
scan.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10K bytes - Viewed (0) -
src/cmd/compile/internal/types2/pointer.go
type Pointer struct { base Type // element type } // NewPointer returns a new pointer type for the given element (base) type. func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} } // Elem returns the element type for the given pointer p. func (p *Pointer) Elem() Type { return p.base } func (p *Pointer) Underlying() Type { return p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 01 22:17:50 UTC 2021 - 635 bytes - Viewed (0) -
src/cmd/compile/internal/types/size.go
case TARRAY: if t.Elem() == nil { break } CalcSize(t.Elem()) t.SetNotInHeap(t.Elem().NotInHeap()) if t.Elem().width != 0 { cap := (uint64(MaxWidth) - 1) / uint64(t.Elem().width) if uint64(t.NumElem()) > cap { base.Errorf("type %L larger than address space", t) } } w = t.NumElem() * t.Elem().width t.align = t.Elem().align
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 15K bytes - Viewed (0) -
src/cmd/compile/internal/types2/index.go
case *Array: l = t.len e = t.elem if x.mode != variable { mode = value } case *Pointer: if t, _ := under(t.base).(*Array); t != nil { l = t.len e = t.elem } case *Slice: e = t.elem case *Map: k = t.key e = t.elem } if e == nil { return false } if elem == nil { // first type length = l
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 15 16:16:58 UTC 2023 - 11.5K bytes - Viewed (0) -
src/internal/types/testdata/examples/inference.go
// last. related2(1.2, []float64{}) related2(1.0, []int{}) related2 /* ERROR "Slice (type []int) does not satisfy interface{[]Elem}" */ (float64(1.0), []int{}) // TODO(gri) better error message } type List[P any] []P func related3[Elem any, Slice []Elem | List[Elem]]() Slice { return nil } func _() { // related3 can be instantiated explicitly related3[int, []int]() related3[byte, List[byte]]()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 02 16:49:45 UTC 2023 - 4.3K bytes - Viewed (0) -
test/typeparam/orderedmap.go
// the receiver stops reading them. func _Ranger[Elem any]() (*_Sender[Elem], *_Receiver[Elem]) { c := make(chan Elem) d := make(chan struct{}) s := &_Sender[Elem]{ values: c, done: d, } r := &_Receiver[Elem]{ values: c, done: d, } runtime.SetFinalizer(r, (*_Receiver[Elem]).finalize) return s, r } // A _Sender is used to send values to a Receiver.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.1K bytes - Viewed (0) -
callbacks/associations.go
for i := 0; i < f.Len(); i++ { elem := f.Index(i) if !isPtr { elem = elem.Addr() } objs = append(objs, v) elems = reflect.Append(elems, elem) relPrimaryValues := make([]interface{}, 0, len(rel.FieldSchema.PrimaryFields)) for _, pf := range rel.FieldSchema.PrimaryFields { if pfv, ok := pf.ValueOf(db.Statement.Context, elem); !ok {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Apr 11 03:06:13 UTC 2023 - 14.3K bytes - Viewed (0) -
src/go/types/subst.go
return subst.check.newAliasInstance(subst.pos, t.orig, targs, subst.ctxt) } case *Array: elem := subst.typOrNil(t.elem) if elem != t.elem { return &Array{len: t.len, elem: elem} } case *Slice: elem := subst.typOrNil(t.elem) if elem != t.elem { return &Slice{elem: elem} } case *Struct: if fields, copied := subst.varList(t.fields); copied {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0)