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§

source§

impl KnownLayout for bool

source§

impl KnownLayout for char

source§

impl KnownLayout for f32

source§

impl KnownLayout for f64

source§

impl KnownLayout for i8

source§

impl KnownLayout for i16

source§

impl KnownLayout for i32

source§

impl KnownLayout for i64

source§

impl KnownLayout for i128

source§

impl KnownLayout for isize

source§

impl KnownLayout for str

source§

impl KnownLayout for u8

source§

impl KnownLayout for u16

source§

impl KnownLayout for u32

source§

impl KnownLayout for u64

source§

impl KnownLayout for u128

source§

impl KnownLayout for ()

source§

impl KnownLayout for usize

source§

impl KnownLayout for __m128

Available on x86-64 and crate feature simd only.
source§

impl KnownLayout for __m128d

Available on x86-64 and crate feature simd only.
source§

impl KnownLayout for __m128i

Available on x86-64 and crate feature simd only.
source§

impl KnownLayout for __m256

Available on x86-64 and crate feature simd only.
source§

impl KnownLayout for __m256d

Available on x86-64 and crate feature simd only.
source§

impl KnownLayout for __m256i

Available on x86-64 and crate feature simd only.
source§

impl KnownLayout for __m512

Available on crate feature simd-nightly and x86-64 and crate feature simd only.
source§

impl KnownLayout for __m512bh

Available on crate feature simd-nightly and x86-64 and crate feature simd only.
source§

impl KnownLayout for __m512d

Available on crate feature simd-nightly and x86-64 and crate feature simd only.
source§

impl KnownLayout for __m512i

Available on crate feature simd-nightly and x86-64 and crate feature simd only.
source§

impl KnownLayout for NonZeroI8

source§

impl KnownLayout for NonZeroI16

source§

impl KnownLayout for NonZeroI32

source§

impl KnownLayout for NonZeroI64

source§

impl KnownLayout for NonZeroI128

source§

impl KnownLayout for NonZeroIsize

source§

impl KnownLayout for NonZeroU8

source§

impl KnownLayout for NonZeroU16

source§

impl KnownLayout for NonZeroU32

source§

impl KnownLayout for NonZeroU64

source§

impl KnownLayout for NonZeroU128

source§

impl KnownLayout for NonZeroUsize

source§

impl<T> KnownLayout for Option<T>

source§

impl<T> KnownLayout for [T]

source§

impl<T> KnownLayout for Wrapping<T>

source§

impl<T> KnownLayout for MaybeUninit<T>

source§

impl<T, const N: usize> KnownLayout for [T; N]

source§

impl<T: ?Sized + KnownLayout> KnownLayout for UnsafeCell<T>

source§

impl<T: ?Sized + KnownLayout> KnownLayout for ManuallyDrop<T>

source§

impl<T: ?Sized> KnownLayout for *const T

source§

impl<T: ?Sized> KnownLayout for *mut T

source§

impl<T: ?Sized> KnownLayout for PhantomData<T>

Implementors§

source§

impl<O> KnownLayout for F32<O>
where Self: Sized,

source§

impl<O> KnownLayout for F64<O>
where Self: Sized,

source§

impl<O> KnownLayout for I16<O>
where Self: Sized,

source§

impl<O> KnownLayout for I32<O>
where Self: Sized,

source§

impl<O> KnownLayout for I64<O>
where Self: Sized,

source§

impl<O> KnownLayout for I128<O>
where Self: Sized,

source§

impl<O> KnownLayout for Isize<O>
where Self: Sized,

source§

impl<O> KnownLayout for U16<O>
where Self: Sized,

source§

impl<O> KnownLayout for U32<O>
where Self: Sized,

source§

impl<O> KnownLayout for U64<O>
where Self: Sized,

source§

impl<O> KnownLayout for U128<O>
where Self: Sized,

source§

impl<O> KnownLayout for Usize<O>
where Self: Sized,

source§

impl<T> KnownLayout for Unalign<T>
where T: KnownLayout,