Home
last modified time | relevance | path

Searched refs:field_layout (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/bindgen/src/codegen/
Dstruct_layout.rs162 let mut field_layout = field_ty.layout(self.ctx)?; in saw_field() localVariable
177 field_layout.size = in saw_field()
179 field_layout.align = MAX_GUARANTEED_ALIGN; in saw_field()
183 self.saw_field_with_layout(field_name, field_layout, field_offset) in saw_field()
189 field_layout: Layout, in saw_field_with_layout()
192 let will_merge_with_bitfield = self.align_to_latest_field(field_layout); in saw_field_with_layout()
201 field_layout.align == 0 || in saw_field_with_layout()
206 self.padding_bytes(field_layout) in saw_field_with_layout()
221 let need_padding = padding_bytes >= field_layout.align || in saw_field_with_layout()
222 field_layout.align > MAX_GUARANTEED_ALIGN; in saw_field_with_layout()
[all …]
/external/rust/crates/bindgen/src/ir/
Dcomp.rs1124 let field_layout = field.layout(ctx); in layout() localVariable
1126 if let Some(layout) = field_layout { in layout()