Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,325 for TField (0.2 sec)

  1. src/internal/reflectlite/export_test.go

    	// In the latter case, we must have field.offset = 0,
    	// so v.ptr + field.offset is still the correct address.
    	ptr := add(v.ptr, field.Offset, "same as non-reflect &v.field")
    	return Value{typ, ptr, fl}
    }
    
    func TField(typ Type, i int) Type {
    	t := typ.(rtype)
    	if t.Kind() != Struct {
    		panic("reflect: Field of non-struct type")
    	}
    	tt := (*structType)(unsafe.Pointer(t.Type))
    
    	return StructFieldType(tt, i)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/text/template/exec.go

    	}
    	hasArgs := len(args) > 1 || !isMissing(final)
    	// It's not a method; must be a field of a struct or an element of a map.
    	switch receiver.Kind() {
    	case reflect.Struct:
    		tField, ok := receiver.Type().FieldByName(fieldName)
    		if ok {
    			field, err := receiver.FieldByIndexErr(tField.Index)
    			if !tField.IsExported() {
    				s.errorf("%s is an unexported field of struct type %s", fieldName, typ)
    			}
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/internal/reflectlite/all_test.go

    	ok(func() { clear(Field(v, 3)) })                      // .NamedT1
    	ok(func() { clear(Field(Field(v, 3), 0)) })            // .NamedT1.Y
    	bad(func() { clear(Field(Field(v, 3), 1)) })           // .NamedT1.t0
    	ok(func() { clear(Field(Field(Field(v, 3), 1), 0)) })  // .NamedT1.t0.W
    	ok(func() { clear(Field(v, 4)) })                      // .NamedT2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/subr.go

    	// generate all reachable methods
    	slist = slist[:0]
    	expand1(t, true)
    
    	// check each method to be uniquely reachable
    	var ms []*types.Field
    	for i, sl := range slist {
    		slist[i].field = nil
    		sl.field.Sym.SetUniq(false)
    
    		var f *types.Field
    		path, _ := dotpath(sl.field.Sym, t, &f, false)
    		if path == nil {
    			continue
    		}
    
    		// dotpath may have dug out arbitrary fields, we only want methods.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  5. schema/field.go

    			field.DataType = ""
    			field.IgnoreMigration = true
    		case "migration":
    			field.IgnoreMigration = true
    		}
    	}
    
    	if v, ok := field.TagSettings["->"]; ok {
    		field.Creatable = false
    		field.Updatable = false
    		if strings.ToLower(v) == "false" {
    			field.Readable = false
    		} else {
    			field.Readable = true
    		}
    	}
    
    	if v, ok := field.TagSettings["<-"]; ok {
    		field.Creatable = true
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/field.go

    package ppc64asm
    
    import (
    	"fmt"
    	"strings"
    )
    
    // A BitField is a bit-field in a 32-bit word.
    // Bits are counted from 0 from the MSB to 31 as the LSB.
    type BitField struct {
    	Offs uint8 // the offset of the left-most bit.
    	Bits uint8 // length in bits.
    	// This instruction word holding this field.
    	// It is always 0 for ISA < 3.1 instructions. It is
    	// in decoding order. (0 == prefix, 1 == suffix on ISA 3.1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    # Dependencies with yield
    
    FastAPI supports dependencies that do some <abbr title='sometimes also called "exit code", "cleanup code", "teardown code", "closing code", "context manager exit code", etc.'>extra steps after finishing</abbr>.
    
    To do this, use `yield` instead of `return`, and write the extra steps (code) after.
    
    !!! tip
        Make sure to use `yield` one single time.
    
    !!! note "Technical Details"
        Any function that is valid to use with:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/dependencies/dependencies-with-yield.md

    # Abhängigkeiten mit yield
    
    FastAPI unterstützt Abhängigkeiten, die nach Abschluss einige <abbr title="Manchmal auch genannt „Exit Code“, „Cleanup Code“, „Teardown Code“, „Closing Code“, „Kontext Manager Exit Code“, usw.">zusätzliche Schritte ausführen</abbr>.
    
    Verwenden Sie dazu `yield` statt `return` und schreiben Sie die zusätzlichen Schritte / den zusätzlichen Code danach.
    
    !!! tip "Tipp"
        Stellen Sie sicher, dass Sie `yield` nur einmal pro Abhängigkeit verwenden.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:10:29 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

       **FastAPI** использует их "под капотом" с этой целью.
    
    ## Зависимости с `yield` и `HTTPException`
    
    Вы видели, что можно использовать зависимости с `yield` совместно с блоком `try`, отлавливающие исключения.
    
    Таким же образом вы можете поднять исключение `HTTPException` или что-то подобное в завершающем коде, после `yield`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 04:21:06 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

    ⚫️ 5️⃣📆 😋 🤚 `HTTPException` ⚖️ 🎏 🚪 📟, ⏮️ `yield`. ✋️ **⚫️ 🏆 🚫 👷**.
    
    🚪 📟 🔗 ⏮️ `yield` 🛠️ *⏮️* 📨 📨, [⚠ 🐕‍🦺](../handling-errors.md#_4){.internal-link target=_blank} 🔜 ✔️ ⏪ 🏃. 📤 🕳 😽 ⚠ 🚮 👆 🔗 🚪 📟 (⏮️ `yield`).
    
    , 🚥 👆 🤚 `HTTPException` ⏮️ `yield`, 🔢 (⚖️ 🙆 🛃) ⚠ 🐕‍🦺 👈 ✊ `HTTPException`Ⓜ &amp; 📨 🇺🇸🔍 4️⃣0️⃣0️⃣ 📨 🏆 🚫 📤 ✊ 👈 ⚠ 🚫🔜.
    
    👉 ⚫️❔ ✔ 🕳 ⚒ 🔗 (✅ 💽 🎉), 🖼, ⚙️ 🖥 📋.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top