Lines Matching defs:DstLayout
33 pub struct DstLayout { struct
34 pub(crate) align: NonZeroUsize,
35 pub(crate) size_info: SizeInfo,
40 pub(crate) statically_shallow_unpadded: bool,
105 impl DstLayout { implementation
185 pub const fn new_zst(repr_align: Option<NonZeroUsize>) -> DstLayout { in new_zst()
209 pub const fn for_type<T>() -> DstLayout { in for_type()
233 pub const fn for_unpadded_type<T>() -> DstLayout { in for_unpadded_type()
242 pub(crate) const fn for_slice<T>() -> DstLayout { in for_slice()
283 fields: &[DstLayout], in for_repr_c_struct()
284 ) -> DstLayout { in for_repr_c_struct()
341 pub const fn extend(self, field: DstLayout, repr_packed: Option<NonZeroUsize>) -> Self { in extend()
914 src: &DstLayout, in project()
915 dst: &DstLayout, in project()
1332 fn layout<S: Into<SizeInfo>>(s: S, align: usize) -> DstLayout { in test_validate_cast_and_convert_metadata()
1514 (layout, addr, bytes_len, cast_type): (DstLayout, usize, usize, CastType), in test_validate_cast_and_convert_metadata()
1958 impl kani::Arbitrary for DstLayout { implementation