Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,080 for Field2 (0.1 sec)

  1. test/range4.go

    package main
    
    var gj int
    
    func yield4x(yield func() bool) {
    	_ = yield() && yield() && yield() && yield()
    }
    
    func yield4(yield func(int) bool) {
    	_ = yield(1) && yield(2) && yield(3) && yield(4)
    }
    
    func yield3(yield func(int) bool) {
    	_ = yield(1) && yield(2) && yield(3)
    }
    
    func yield2(yield func(int) bool) {
    	_ = yield(1) && yield(2)
    }
    
    func testfunc0() {
    	j := 0
    	for range yield4x {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/fields/fields.go

    limitations under the License.
    */
    
    package fields
    
    import (
    	"sort"
    	"strings"
    )
    
    // Fields allows you to present fields independently from their storage.
    type Fields interface {
    	// Has returns whether the provided field exists.
    	Has(field string) (exists bool)
    
    	// Get returns the value for the provided field.
    	Get(field string) (value string)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 19 14:50:16 UTC 2017
    - 1.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/third_party/forked/golang/json/fields.go

    	// except that fields with JSON tags are promoted.
    
    	// The fields are sorted in primary order of name, secondary order
    	// of field index length. Loop over names; for each name, delete
    	// hidden fields by choosing the one dominant field that survives.
    	out := fields[:0]
    	for advance, i := 0, 0; i < len(fields); i += advance {
    		// One iteration per name.
    		// Find the sequence of fields with the name of this first field.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 13.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/fields.go

    )
    
    // EmptyFields represents a set with no paths
    // It looks like metav1.Fields{Raw: []byte("{}")}
    var EmptyFields = func() metav1.FieldsV1 {
    	f, err := SetToFields(*fieldpath.NewSet())
    	if err != nil {
    		panic("should never happen")
    	}
    	return f
    }()
    
    // FieldsToSet creates a set paths from an input trie of fields
    func FieldsToSet(f metav1.FieldsV1) (s fieldpath.Set, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/body-fields.md

    !!! tip "Подсказка"
        Обратите внимание, что каждый атрибут модели с типом, значением по умолчанию и `Field` имеет ту же структуру, что и параметр *функции обработки пути* с `Field` вместо `Path`, `Query` и `Body`.
    
    ## Добавление дополнительной информации
    
    Вы можете объявлять дополнительную информацию в `Field`, `Query`, `Body` и т.п. Она будет включена в сгенерированную JSON схему.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. docs/em/docs/tutorial/body-fields.md

         &amp; Pydantic `Field` 📨 👐 `FieldInfo` 👍.
    
        `Body` 📨 🎚 🏿 `FieldInfo` 🔗. &amp; 📤 🎏 👆 🔜 👀 ⏪ 👈 🏿 `Body` 🎓.
    
        💭 👈 🕐❔ 👆 🗄 `Query`, `Path`, &amp; 🎏 ⚪️➡️ `fastapi`, 👈 🤙 🔢 👈 📨 🎁 🎓.
    
    !!! tip
        👀 ❔ 🔠 🏷 🔢 ⏮️ 🆎, 🔢 💲 &amp; `Field` ✔️ 🎏 📊 *➡ 🛠️ 🔢* 🔢, ⏮️ `Field` ↩️ `Path`, `Query` &amp; `Body`.
    
    ## 🚮 ➕ ℹ
    
    👆 💪 📣 ➕ ℹ `Field`, `Query`, `Body`, ♒️. &amp; ⚫️ 🔜 🔌 🏗 🎻 🔗.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/body-fields.md

    !!! tip "提示"
    
        注意,模型属性的类型、默认值及 `Field` 的代码结构与*路径操作函数*的参数相同,只不过是用 `Field` 替换了`Path`、`Query`、`Body`。
    
    ## 添加更多信息
    
    `Field`、`Query`、`Body` 等对象里可以声明更多信息,并且 JSON Schema 中也会集成这些信息。
    
    *声明示例*一章中将详细介绍添加更多信息的知识。
    
    ## 小结
    
    Pydantic 的 `Field` 可以为模型属性声明更多校验和元数据。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Apr 01 05:35:27 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/body-fields.md

    ## `Field`のインポート
    
    まず、以下のようにインポートします:
    
    ```Python hl_lines="4"
    {!../../../docs_src/body_fields/tutorial001.py!}
    ```
    
    !!! warning "注意"
        `Field`は他の全てのもの(`Query`、`Path`、`Body`など)とは違い、`fastapi`からではなく、`pydantic`から直接インポートされていることに注意してください。
    
    ## モデルの属性の宣言
    
    以下のように`Field`をモデルの属性として使用することができます:
    
    ```Python hl_lines="11 12 13 14"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jan 15 15:33:28 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top