Trait PaddingBane

Source
pub unsafe trait PaddingBane {
    type Fields: Copy;

    // Required methods
    fn get_fields(&self) -> Self::Fields;
    unsafe fn init_padding(fields: Self::Fields, bytes: &mut [MaybeUninit<u8>]);
}
Expand description

This trait must be implemented in order to fill padding bytes of an object.

Required Associated Types§

Source

type Fields: Copy

Metadata about type’s fields.

Required Methods§

Source

fn get_fields(&self) -> Self::Fields

Return fields metadata.

§Safety

This function must return equal value for any instance of the Self type. It exists only because reference to instance is required to fetch field offsets.

Source

unsafe fn init_padding(fields: Self::Fields, bytes: &mut [MaybeUninit<u8>])

Fills padding bytes in the bytes array. Padding bytes are bytes where no fields of the struct are stored or padding bytes of the fields.

§Safety

fields must be created from any instance of Self. bytes must be created by casting &mut Self or, for a field, it must be subslice of the parent’s bytes where field is stored.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PaddingBane for Option<NonZeroI8>

Source§

type Fields = PhantomData<fn(Option<NonZero<i8>>) -> Option<NonZero<i8>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroI16>

Source§

type Fields = PhantomData<fn(Option<NonZero<i16>>) -> Option<NonZero<i16>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroI32>

Source§

type Fields = PhantomData<fn(Option<NonZero<i32>>) -> Option<NonZero<i32>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroI64>

Source§

type Fields = PhantomData<fn(Option<NonZero<i64>>) -> Option<NonZero<i64>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroI128>

Source§

type Fields = PhantomData<fn(Option<NonZero<i128>>) -> Option<NonZero<i128>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroIsize>

Source§

type Fields = PhantomData<fn(Option<NonZero<isize>>) -> Option<NonZero<isize>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroU8>

Source§

type Fields = PhantomData<fn(Option<NonZero<u8>>) -> Option<NonZero<u8>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroU16>

Source§

type Fields = PhantomData<fn(Option<NonZero<u16>>) -> Option<NonZero<u16>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroU32>

Source§

type Fields = PhantomData<fn(Option<NonZero<u32>>) -> Option<NonZero<u32>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroU64>

Source§

type Fields = PhantomData<fn(Option<NonZero<u64>>) -> Option<NonZero<u64>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroU128>

Source§

type Fields = PhantomData<fn(Option<NonZero<u128>>) -> Option<NonZero<u128>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for Option<NonZeroUsize>

Source§

type Fields = PhantomData<fn(Option<NonZero<usize>>) -> Option<NonZero<usize>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for bool

Source§

type Fields = PhantomData<fn(bool) -> bool>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for f32

Source§

type Fields = PhantomData<fn(f32) -> f32>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for f64

Source§

type Fields = PhantomData<fn(f64) -> f64>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for i8

Source§

type Fields = PhantomData<fn(i8) -> i8>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for i16

Source§

type Fields = PhantomData<fn(i16) -> i16>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for i32

Source§

type Fields = PhantomData<fn(i32) -> i32>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for i64

Source§

type Fields = PhantomData<fn(i64) -> i64>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for i128

Source§

type Fields = PhantomData<fn(i128) -> i128>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for isize

Source§

type Fields = PhantomData<fn(isize) -> isize>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for u8

Source§

type Fields = PhantomData<fn(u8) -> u8>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for u16

Source§

type Fields = PhantomData<fn(u16) -> u16>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for u32

Source§

type Fields = PhantomData<fn(u32) -> u32>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for u64

Source§

type Fields = PhantomData<fn(u64) -> u64>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for u128

Source§

type Fields = PhantomData<fn(u128) -> u128>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for ()

Source§

type Fields = PhantomData<fn(())>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for usize

Source§

type Fields = PhantomData<fn(usize) -> usize>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for PhantomPinned

Source§

type Fields = PhantomData<fn(PhantomPinned) -> PhantomPinned>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicI8

Source§

type Fields = PhantomData<fn(AtomicI8) -> AtomicI8>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicI16

Source§

type Fields = PhantomData<fn(AtomicI16) -> AtomicI16>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicI32

Source§

type Fields = PhantomData<fn(AtomicI32) -> AtomicI32>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicI64

Source§

type Fields = PhantomData<fn(AtomicI64) -> AtomicI64>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicIsize

Source§

type Fields = PhantomData<fn(AtomicIsize) -> AtomicIsize>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicU8

Source§

type Fields = PhantomData<fn(AtomicU8) -> AtomicU8>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicU16

Source§

type Fields = PhantomData<fn(AtomicU16) -> AtomicU16>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicU32

Source§

type Fields = PhantomData<fn(AtomicU32) -> AtomicU32>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicU64

Source§

type Fields = PhantomData<fn(AtomicU64) -> AtomicU64>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl PaddingBane for AtomicUsize

Source§

type Fields = PhantomData<fn(AtomicUsize) -> AtomicUsize>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for Option<NonNull<T>>

Source§

type Fields = PhantomData<fn(Option<NonNull<T>>) -> Option<NonNull<T>>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 0]

Source§

type Fields = PhantomData<fn([T; 0]) -> [T; 0]>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 1]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 2]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 3]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 4]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 5]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 6]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 7]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 8]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 9]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 10]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 11]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 12]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 13]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 14]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 15]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 16]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 17]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 18]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 19]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 20]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 21]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 22]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 23]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 24]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 25]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 26]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 27]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 28]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 29]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 30]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 31]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 32]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 48]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 64]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 96]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 128]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 256]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 512]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 1024]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 2048]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 4096]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 8192]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 16384]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 32768]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for [T; 65536]
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> T::Fields

Source§

unsafe fn init_padding(fields: T::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for *const T

Source§

type Fields = PhantomData<fn(*const T) -> *const T>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for *mut T

Source§

type Fields = PhantomData<fn(*mut T) -> *mut T>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for PhantomData<T>

Source§

type Fields = PhantomData<fn(PhantomData<T>) -> PhantomData<T>>

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(_fields: Self::Fields, _bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for ManuallyDrop<T>
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(fields: Self::Fields, bytes: &mut [MaybeUninit<u8>])

Source§

impl<T> PaddingBane for Wrapping<T>
where T: PaddingBane,

Source§

type Fields = <T as PaddingBane>::Fields

Source§

fn get_fields(&self) -> Self::Fields

Source§

unsafe fn init_padding(fields: Self::Fields, bytes: &mut [MaybeUninit<u8>])

Implementors§