Lines Matching defs:extend
1123 layout = layout.extend(field, repr_packed);
1132 // invocations of `DstLayout::{new_zst,extend,pad_to_align}`. The
1144 /// Like `Layout::extend`, this creates a layout that describes a record
1163 /// on `self.extend(field, repr_packed)` producing a layout that correctly
1176 pub const fn extend(self, field: DstLayout, repr_packed: Option<NonZeroUsize>) -> Self {
1178 #[kani::proof_for_contract(DstLayout::extend)]
1181 let _ = kani::any::<DstLayout>().extend(kani::any(), kani::any());
1224 SizeInfo::SliceDst(..) => const_panic!("Cannot extend a DST with additional fields."),
1329 /// should be invoked after the invocations of [`DstLayout::extend`].
2913 let composite = base.extend(trailing_field, pack);
2998 let composite = base.extend(trailing_field, pack);
4010 /// Models appending `field` to a sized `prefix` for `DstLayout::extend`.
4790 // Under the above conditions, `DstLayout::extend` will not panic.
4791 let composite = base.extend(field, packed);
4798 // stand-ins for `DstLayout`, and show that `extend` behaves
4814 if let Ok((actual_composite, actual_offset)) = base_analog.extend(field_analog)
4886 if let Ok((actual_composite, actual_offset)) = base_analog.extend(field_analog)
4921 let _ = base.extend(field, packed);