Trait zerocopy::KnownLayout
source · pub unsafe trait KnownLayout { }
Expand description
A trait which carries information about a type’s layout that is used by the internals of this crate.
This trait is not meant for consumption by code outside of this crate. While
the normal semver stability guarantees apply with respect to which types
implement this trait and which trait implementations are implied by this
trait, no semver stability guarantees are made regarding its internals
(which are #[doc(hidden)]
); they may change at any time, and code which
makes use of them may break.
§Safety
This trait does not convey any safety guarantees to code outside this crate.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
impl KnownLayout for bool
impl KnownLayout for char
impl KnownLayout for f32
impl KnownLayout for f64
impl KnownLayout for i8
impl KnownLayout for i16
impl KnownLayout for i32
impl KnownLayout for i64
impl KnownLayout for i128
impl KnownLayout for isize
impl KnownLayout for str
impl KnownLayout for u8
impl KnownLayout for u16
impl KnownLayout for u32
impl KnownLayout for u64
impl KnownLayout for u128
impl KnownLayout for ()
impl KnownLayout for usize
impl KnownLayout for __m128
Available on x86-64 and crate feature
simd
only.impl KnownLayout for __m128d
Available on x86-64 and crate feature
simd
only.impl KnownLayout for __m128i
Available on x86-64 and crate feature
simd
only.impl KnownLayout for __m256
Available on x86-64 and crate feature
simd
only.impl KnownLayout for __m256d
Available on x86-64 and crate feature
simd
only.impl KnownLayout for __m256i
Available on x86-64 and crate feature
simd
only.impl KnownLayout for __m512
Available on crate feature
simd-nightly
and x86-64 and crate feature simd
only.impl KnownLayout for __m512bh
Available on crate feature
simd-nightly
and x86-64 and crate feature simd
only.impl KnownLayout for __m512d
Available on crate feature
simd-nightly
and x86-64 and crate feature simd
only.impl KnownLayout for __m512i
Available on crate feature
simd-nightly
and x86-64 and crate feature simd
only.