Lines Matching refs:Layout
1144 /// Like `Layout::extend`, this creates a layout that describes a record
1324 /// Like `Layout::pad_to_align`, this routine rounds the size of this layout
2422 /// Layout construction uses [`DstLayout::for_repr_c_struct`], and the
3954 use core::alloc::Layout;
4156 // `THEORETICAL_MAX_ALIGN`. `Layout` admits that maximum alignment for
4166 /// `Layout::from_size_align`. For a DST, `size_base + size_phase` must also
4177 SizeInfo::Sized { size } => Layout::from_size_align(size, align.get()),
4193 Some(min_size) => Layout::from_size_align(min_size, align.get()),
4194 None => Layout::from_size_align(usize::MAX, align.get()),
4797 // For testing purposes, we'll also construct `alloc::Layout`
4800 let base_analog = Layout::from_size_align(base_size, base.align.get()).unwrap();
4812 Layout::from_size_align(field_size, field_align.get()).unwrap();
4825 // permissive than `Layout`, so we don't assert
4880 // `alloc::Layout` permits sizes which are not a multiple
4884 Layout::from_size_align(field_trailing.offset, field_align.get()).unwrap();
4897 // permissive than `Layout`, so we don't assert
4984 // `Layout::pad_to_align`.
4985 let layout_analog = Layout::from_size_align(unpadded_size, layout.align.get()).unwrap();