Lines Matching defs:fields
21 fields: Punctuated<InitializerField, Token![,]>,
77 fields,
123 // The user specified `..Zeroable::zeroed()` at the end of the list of fields.
125 // This allows us to also remove the check that all fields are present (since we
140 // expressions creating the individual fields.
146 let init_fields = init_fields(&fields, pinned, &data, &slot);
147 let field_check = make_field_check(&fields, init_kind, &path);
149 // Get the data about fields from the supplied type.
215 /// Generate the code that initializes the fields of the struct using the initializers in `field`.
217 fields: &Punctuated<InitializerField, Token![,]>,
225 for InitializerField { attrs, kind } in fields {
310 // If execution reaches this point, all fields have been initialized. Therefore we can now
321 fields: &Punctuated<InitializerField, Token![,]>,
325 let field_attrs: Vec<_> = fields
329 let field_name: Vec<_> = fields.iter().filter_map(|f| f.kind.ident()).collect();
342 // Unaligned fields will cause the compiler to emit E0793. We do not support
343 // unaligned fields since `Init::__init` requires an aligned pointer; the call to
350 // If the zeroing trailer is not present, this checks that all fields have been
351 // mentioned exactly once. If the zeroing trailer is present, all missing fields will be
352 // zeroed, so this checks that all fields have been mentioned at most once. The use of
372 let mut fields = Punctuated::new();
378 fields.push_value(content.parse()?);
383 fields.push_punct(content.parse()?);
415 fields,