Trait IntoBytes

Source
pub unsafe trait IntoBytes {
    // Provided methods
    fn as_bytes(&self) -> &[u8]
       where Self: Immutable { ... }
    fn as_mut_bytes(&mut self) -> &mut [u8]
       where Self: FromBytes { ... }
    fn write_to(
        &self,
        dst: &mut [u8],
    ) -> Result<(), SizeError<&Self, &mut [u8]>>
       where Self: Immutable { ... }
    fn write_to_prefix(
        &self,
        dst: &mut [u8],
    ) -> Result<(), SizeError<&Self, &mut [u8]>>
       where Self: Immutable { ... }
    fn write_to_suffix(
        &self,
        dst: &mut [u8],
    ) -> Result<(), SizeError<&Self, &mut [u8]>>
       where Self: Immutable { ... }
}
Expand description

Types that can be converted to an immutable slice of initialized bytes.

Any IntoBytes type can be converted to a slice of initialized bytes of the same size. This is useful for efficiently serializing structured data as raw bytes.

§Implementation

Do not implement this trait yourself! Instead, use #[derive(IntoBytes)]; e.g.:

#[derive(IntoBytes)]
#[repr(C)]
struct MyStruct {
    ...
}

#[derive(IntoBytes)]
#[repr(u8)]
enum MyEnum {
    ...
}

This derive performs a sophisticated, compile-time safety analysis to determine whether a type is IntoBytes. See the derive documentation for guidance on how to interpret error messages produced by the derive’s analysis.

§Safety

This section describes what is required in order for T: IntoBytes, and what unsafe code may assume of such types. If you don’t plan on implementing IntoBytes manually, and you don’t plan on writing unsafe code that operates on IntoBytes types, then you don’t need to read this section.

If T: IntoBytes, then unsafe code may assume that it is sound to treat any t: T as an immutable [u8] of length size_of_val(t). If a type is marked as IntoBytes which violates this contract, it may cause undefined behavior.

#[derive(IntoBytes)] only permits types which satisfy these requirements.

Provided Methods§

Source

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value.

§Examples
use zerocopy::IntoBytes;

#[derive(IntoBytes, Immutable)]
#[repr(C)]
struct PacketHeader {
    src_port: [u8; 2],
    dst_port: [u8; 2],
    length: [u8; 2],
    checksum: [u8; 2],
}

let header = PacketHeader {
    src_port: [0, 1],
    dst_port: [2, 3],
    length: [4, 5],
    checksum: [6, 7],
};

let bytes = header.as_bytes();

assert_eq!(bytes, [0, 1, 2, 3, 4, 5, 6, 7]);
Source

fn as_mut_bytes(&mut self) -> &mut [u8]
where Self: FromBytes,

Gets the bytes of this value mutably.

§Examples
use zerocopy::IntoBytes;

#[derive(FromBytes, IntoBytes, Immutable)]
#[repr(C)]
struct PacketHeader {
    src_port: [u8; 2],
    dst_port: [u8; 2],
    length: [u8; 2],
    checksum: [u8; 2],
}

let mut header = PacketHeader {
    src_port: [0, 1],
    dst_port: [2, 3],
    length: [4, 5],
    checksum: [6, 7],
};

let bytes = header.as_mut_bytes();

assert_eq!(bytes, [0, 1, 2, 3, 4, 5, 6, 7]);

bytes.reverse();

assert_eq!(header, PacketHeader {
    src_port: [7, 6],
    dst_port: [5, 4],
    length: [3, 2],
    checksum: [1, 0],
});
Source

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst.

If dst.len() != size_of_val(self), write_to returns Err.

§Examples
use zerocopy::IntoBytes;

#[derive(IntoBytes, Immutable)]
#[repr(C)]
struct PacketHeader {
    src_port: [u8; 2],
    dst_port: [u8; 2],
    length: [u8; 2],
    checksum: [u8; 2],
}

let header = PacketHeader {
    src_port: [0, 1],
    dst_port: [2, 3],
    length: [4, 5],
    checksum: [6, 7],
};

let mut bytes = [0, 0, 0, 0, 0, 0, 0, 0];

header.write_to(&mut bytes[..]);

assert_eq!(bytes, [0, 1, 2, 3, 4, 5, 6, 7]);

If too many or too few target bytes are provided, write_to returns Err and leaves the target bytes unmodified:

let mut excessive_bytes = &mut [0u8; 128][..];

let write_result = header.write_to(excessive_bytes);

assert!(write_result.is_err());
assert_eq!(excessive_bytes, [0u8; 128]);
Source

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst.

write_to_prefix writes self to the first size_of_val(self) bytes of dst. If dst.len() < size_of_val(self), it returns Err.

§Examples
use zerocopy::IntoBytes;

#[derive(IntoBytes, Immutable)]
#[repr(C)]
struct PacketHeader {
    src_port: [u8; 2],
    dst_port: [u8; 2],
    length: [u8; 2],
    checksum: [u8; 2],
}

let header = PacketHeader {
    src_port: [0, 1],
    dst_port: [2, 3],
    length: [4, 5],
    checksum: [6, 7],
};

let mut bytes = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];

header.write_to_prefix(&mut bytes[..]);

assert_eq!(bytes, [0, 1, 2, 3, 4, 5, 6, 7, 0, 0]);

If insufficient target bytes are provided, write_to_prefix returns Err and leaves the target bytes unmodified:

let mut insufficent_bytes = &mut [0, 0][..];

let write_result = header.write_to_suffix(insufficent_bytes);

assert!(write_result.is_err());
assert_eq!(insufficent_bytes, [0, 0]);
Source

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst.

write_to_suffix writes self to the last size_of_val(self) bytes of dst. If dst.len() < size_of_val(self), it returns Err.

§Examples
use zerocopy::IntoBytes;

#[derive(IntoBytes, Immutable)]
#[repr(C)]
struct PacketHeader {
    src_port: [u8; 2],
    dst_port: [u8; 2],
    length: [u8; 2],
    checksum: [u8; 2],
}

let header = PacketHeader {
    src_port: [0, 1],
    dst_port: [2, 3],
    length: [4, 5],
    checksum: [6, 7],
};

let mut bytes = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];

header.write_to_suffix(&mut bytes[..]);

assert_eq!(bytes, [0, 0, 0, 1, 2, 3, 4, 5, 6, 7]);

let mut insufficent_bytes = &mut [0, 0][..];

let write_result = header.write_to_suffix(insufficent_bytes);

assert!(write_result.is_err());
assert_eq!(insufficent_bytes, [0, 0]);

If insufficient target bytes are provided, write_to_suffix returns Err and leaves the target bytes unmodified:

let mut insufficent_bytes = &mut [0, 0][..];

let write_result = header.write_to_suffix(insufficent_bytes);

assert!(write_result.is_err());
assert_eq!(insufficent_bytes, [0, 0]);

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 IntoBytes for Option<NonZeroI8>

Source§

impl IntoBytes for Option<NonZeroI16>

Source§

impl IntoBytes for Option<NonZeroI32>

Source§

impl IntoBytes for Option<NonZeroI64>

Source§

impl IntoBytes for Option<NonZeroI128>

Source§

impl IntoBytes for Option<NonZeroIsize>

Source§

impl IntoBytes for Option<NonZeroU8>

Source§

impl IntoBytes for Option<NonZeroU16>

Source§

impl IntoBytes for Option<NonZeroU32>

Source§

impl IntoBytes for Option<NonZeroU64>

Source§

impl IntoBytes for Option<NonZeroU128>

Source§

impl IntoBytes for Option<NonZeroUsize>

Source§

impl IntoBytes for bool

Source§

impl IntoBytes for char

Source§

impl IntoBytes for f32

Source§

impl IntoBytes for f64

Source§

impl IntoBytes for i8

Source§

impl IntoBytes for i16

Source§

impl IntoBytes for i32

Source§

impl IntoBytes for i64

Source§

impl IntoBytes for i128

Source§

impl IntoBytes for isize

Source§

impl IntoBytes for str

Source§

impl IntoBytes for u8

Source§

impl IntoBytes for u16

Source§

impl IntoBytes for u32

Source§

impl IntoBytes for u64

Source§

impl IntoBytes for u128

Source§

impl IntoBytes for ()

Source§

impl IntoBytes for usize

Source§

impl IntoBytes for __m128

Source§

impl IntoBytes for __m128d

Source§

impl IntoBytes for __m128i

Source§

impl IntoBytes for __m256

Source§

impl IntoBytes for __m256d

Source§

impl IntoBytes for __m256i

Source§

impl IntoBytes for AtomicBool

Source§

impl IntoBytes for AtomicI8

Source§

impl IntoBytes for AtomicI16

Source§

impl IntoBytes for AtomicI32

Source§

impl IntoBytes for AtomicI64

Source§

impl IntoBytes for AtomicIsize

Source§

impl IntoBytes for AtomicU8

Source§

impl IntoBytes for AtomicU16

Source§

impl IntoBytes for AtomicU32

Source§

impl IntoBytes for AtomicU64

Source§

impl IntoBytes for AtomicUsize

Source§

impl IntoBytes for NonZeroI8

Source§

impl IntoBytes for NonZeroI16

Source§

impl IntoBytes for NonZeroI32

Source§

impl IntoBytes for NonZeroI64

Source§

impl IntoBytes for NonZeroI128

Source§

impl IntoBytes for NonZeroIsize

Source§

impl IntoBytes for NonZeroU8

Source§

impl IntoBytes for NonZeroU16

Source§

impl IntoBytes for NonZeroU32

Source§

impl IntoBytes for NonZeroU64

Source§

impl IntoBytes for NonZeroU128

Source§

impl IntoBytes for NonZeroUsize

Source§

impl<T: IntoBytes> IntoBytes for [T]

Source§

impl<T: IntoBytes> IntoBytes for Wrapping<T>

Source§

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

Source§

impl<T: ?Sized + IntoBytes> IntoBytes for Cell<T>

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl<O> IntoBytes for F32<O>

Source§

impl<O> IntoBytes for F64<O>

Source§

impl<O> IntoBytes for I16<O>

Source§

impl<O> IntoBytes for I32<O>

Source§

impl<O> IntoBytes for I64<O>

Source§

impl<O> IntoBytes for I128<O>

Source§

impl<O> IntoBytes for Isize<O>

Source§

impl<O> IntoBytes for U16<O>

Source§

impl<O> IntoBytes for U32<O>

Source§

impl<O> IntoBytes for U64<O>

Source§

impl<O> IntoBytes for U128<O>

Source§

impl<O> IntoBytes for Usize<O>

Source§

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

impl IntoBytes for BlockFifoCommand
where u8: IntoBytes, [u8; 3]: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for BlockFifoRequest
where block_fifo_command_t: IntoBytes, reqid_t: IntoBytes, groupid_t: IntoBytes, vmoid_t: IntoBytes, u32: IntoBytes, u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for BlockFifoResponse
where zx_status_t: IntoBytes, reqid_t: IntoBytes, groupid_t: IntoBytes, u16: IntoBytes, u32: IntoBytes, [u64; 4]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Header
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for EapolFields
where ProtocolVersion: IntoBytes, PacketType: IntoBytes, BigEndianU16: IntoBytes,

impl IntoBytes for KeyDescriptor
where u8: IntoBytes,

impl IntoBytes for KeyFrameFields
where KeyDescriptor: IntoBytes, BigEndianU16: IntoBytes, BigEndianU64: IntoBytes, [u8; 32]: IntoBytes, [u8; 16]: IntoBytes, [u8; 8]: IntoBytes,

impl IntoBytes for KeyInformation
where u16: IntoBytes,

impl IntoBytes for PacketType
where u8: IntoBytes,

impl IntoBytes for ProtocolVersion
where u8: IntoBytes,

impl IntoBytes for HwRebootReason

impl IntoBytes for KernelDriver

impl IntoBytes for MemType

impl IntoBytes for PixelFormat

impl IntoBytes for TopologyEntityDiscriminant

impl IntoBytes for Type

impl IntoBytes for BoardInfo
where u32: IntoBytes,

impl IntoBytes for DcfgAmlogicHdcpDriver
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgAmlogicRngDriver
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgArmGenericTimerDriver
where u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgArmGicV2Driver
where u64: IntoBytes, u32: IntoBytes, u8: IntoBytes, u16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgArmGicV3Driver
where u64: IntoBytes, u32: IntoBytes, u8: IntoBytes, [u8; 3]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgArmPsciDriver
where u8: IntoBytes, [u8; 7]: IntoBytes, [u64; 3]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgGeneric32Watchdog
where DcfgGeneric32WatchdogAction: IntoBytes, i64: IntoBytes, KernelDriverGeneric32WatchdogFlags: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgGeneric32WatchdogAction
where u64: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgRiscvGenericTimerDriver
where u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgRiscvPlicDriver
where u64: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgSimple
where u64: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DcfgSimplePio
where u16: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Flags
where u32: IntoBytes,

impl IntoBytes for Header
where Type: IntoBytes, u32: IntoBytes, Flags: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Kernel
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for KernelDriverGeneric32WatchdogFlags
where u32: IntoBytes,

impl IntoBytes for KernelDriverIrqFlags
where u32: IntoBytes,

impl IntoBytes for MemRange
where u64: IntoBytes, MemType: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Nvram
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Partition
where PartitionGuid: IntoBytes, u64: IntoBytes, [u8; 32]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for PartitionMap
where u64: IntoBytes, u32: IntoBytes, PartitionGuid: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for PlatformId
where u32: IntoBytes, [u8; 32]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Swfb
where u64: IntoBytes, u32: IntoBytes, PixelFormat: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for TopologyArm64Info
where u8: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for TopologyCache
where u32: IntoBytes,

impl IntoBytes for TopologyCluster
where u8: IntoBytes,

impl IntoBytes for TopologyDie
where u64: IntoBytes,

impl IntoBytes for TopologyNumaRegion
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for TopologyProcessorFlags
where u16: IntoBytes,

impl IntoBytes for TopologyRiscv64Info
where u64: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for TopologySocket
where u64: IntoBytes,

impl IntoBytes for TopologyX64Info
where [u32; 4]: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Bits

impl IntoBytes for Enum

impl IntoBytes for Color

impl IntoBytes for A

impl IntoBytes for B2
where A: IntoBytes,

impl IntoBytes for C
where A: IntoBytes, B2: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for StructWithHandleMembers
where Handle: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Enum

impl IntoBytes for ArrayMembers
where [u8; 10]: IntoBytes, [Singleton; 6]: IntoBytes, [[u8; 10]; 20]: IntoBytes, [[[i8; 1]; 2]; 3]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Bits
where u16: IntoBytes,

impl IntoBytes for Doubtleton
where Singleton: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Empty

impl IntoBytes for WireF32
where f32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for WireF64
where f64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for WireI16
where i16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for WireI32
where i32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for WireI64
where i64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for WireU16
where u16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for WireU32
where u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for WireU64
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for WireMessageHeader
where WireU32: IntoBytes, [u8; 3]: IntoBytes, u8: IntoBytes, WireU64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for zbi_header_t
where U32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for ProxyFilename
where u64: IntoBytes, [u8; 149]: IntoBytes, [u8; 32]: IntoBytes,

impl IntoBytes for Header
where [u8; 8]: IntoBytes, u32: IntoBytes, u64: IntoBytes, [u8; 16]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for PartitionTableEntry
where [u8; 16]: IntoBytes, u64: IntoBytes, [u16; 36]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Bssid
where [u8; 6]: IntoBytes,

impl IntoBytes for MacAddr
where [u8; 6]: IntoBytes,

impl IntoBytes for Type00Config
where u16: IntoBytes, u8: IntoBytes, [u32; 6]: IntoBytes, u32: IntoBytes, [u8; 3]: IntoBytes, [u8; 4]: IntoBytes,

impl IntoBytes for Type01Config
where u16: IntoBytes, u8: IntoBytes, [u32; 2]: IntoBytes, u32: IntoBytes, [u8; 3]: IntoBytes,

impl IntoBytes for magma_buffer_info
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for magma_buffer_offset
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for magma_exec_command_buffer
where u32: IntoBytes, u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for magma_exec_resource
where magma_buffer_id_t: IntoBytes, u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for magma_image_create_info
where u64: IntoBytes, [u64; 16]: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for magma_image_info
where [u64; 4]: IntoBytes, [u32; 4]: IntoBytes, u64: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for magma_total_time_query_result
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for virtio_magma_buffer_clean_cache_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_clean_cache_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_export_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_export_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_get_cache_policy_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_get_cache_policy_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_get_handle_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_get_handle_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_get_info_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_get_info_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_set_cache_policy_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_set_cache_policy_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_set_name_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_buffer_set_name_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_config
where u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_create_buffer_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_create_buffer_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_create_context_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_create_context_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_create_semaphore_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_create_semaphore_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_dump_performance_counters_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_enable_performance_counter_access_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_execute_command_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_execute_command_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_execute_immediate_commands_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_execute_inline_commands_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_flush_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_flush_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_get_error_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_get_error_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_import_buffer_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_import_buffer_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_import_semaphore2_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_import_semaphore2_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_map_buffer_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_map_buffer_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_perform_buffer_op_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_perform_buffer_op_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_release_buffer_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_release_context_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_connection_release_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_release_semaphore_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_connection_unmap_buffer_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_ctrl_hdr
where u32: IntoBytes,

impl IntoBytes for virtio_magma_device_create_connection_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_device_create_connection_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_device_import_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_device_import_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_device_query_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_device_query_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_device_release_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_device_release_resp
where virtio_magma_ctrl_hdr_t: IntoBytes,

impl IntoBytes for virtio_magma_initialize_logging_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_initialize_logging_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_initialize_tracing_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_initialize_tracing_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_internal_map_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u32: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_internal_map_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_internal_release_handle_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_internal_release_handle_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_internal_unmap_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u32: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_internal_unmap_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_poll_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes, u32: IntoBytes,

impl IntoBytes for virtio_magma_poll_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_semaphore_export_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_semaphore_export_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_semaphore_reset_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_semaphore_signal_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_virt_connection_create_image_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_virt_connection_create_image_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_virt_connection_get_image_info_ctrl
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtio_magma_virt_connection_get_image_info_resp
where virtio_magma_ctrl_hdr_t: IntoBytes, u64: IntoBytes,

impl IntoBytes for virtmagma_buffer_set_name_wrapper
where __u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for virtmagma_command_descriptor
where __u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for virtmagma_create_image_wrapper
where __u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for virtmagma_get_image_info_wrapper
where __u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for virtmagma_ioctl_args_handshake
where __u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for virtmagma_ioctl_args_magma_command
where __u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Header
where U16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Mac
where [u8; 6]: IntoBytes,

impl IntoBytes for Ipv4Addr
where [u8; 4]: IntoBytes,

impl IntoBytes for Ipv6Addr
where [u8; 16]: IntoBytes,

impl IntoBytes for PacketHead
where U32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for UninstantiableRecord

impl IntoBytes for Mldv1Message
where U16: IntoBytes, Ipv6Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Mldv2QueryMessageHeader
where U16: IntoBytes, Ipv6Addr: IntoBytes, u8: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Mldv2ReportHeader
where [u8; 2]: IntoBytes, U16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Mldv2ReportRecordHeader
where u8: IntoBytes, U16: IntoBytes, Ipv6Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for MulticastListenerDone

impl IntoBytes for MulticastListenerQuery

impl IntoBytes for MulticastListenerQueryV2

impl IntoBytes for MulticastListenerReport

impl IntoBytes for MulticastListenerReportV2

impl IntoBytes for PrefixInformation
where u8: IntoBytes, U32: IntoBytes, [u8; 4]: IntoBytes, Ipv6Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for NeighborAdvertisement
where u8: IntoBytes, [u8; 3]: IntoBytes, Ipv6Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for NeighborSolicitation
where [u8; 4]: IntoBytes, Ipv6Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Redirect
where [u8; 4]: IntoBytes, Ipv6Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for RouterAdvertisement
where u8: IntoBytes, U16: IntoBytes, U32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for RouterSolicitation
where [u8; 4]: IntoBytes,

impl IntoBytes for IcmpDestUnreachable
where [u8; 2]: IntoBytes, U16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for IcmpEchoReply
where IdAndSeq: IntoBytes,

impl IntoBytes for IcmpEchoRequest
where IdAndSeq: IntoBytes,

impl IntoBytes for IcmpTimeExceeded
where [u8; 4]: IntoBytes,

impl IntoBytes for Icmpv4ParameterProblem
where u8: IntoBytes, [u8; 3]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Icmpv4Redirect
where Ipv4Addr: IntoBytes,

impl IntoBytes for Icmpv4TimestampReply
where Timestamp: IntoBytes,

impl IntoBytes for Icmpv4TimestampRequest
where Timestamp: IntoBytes,

impl IntoBytes for Icmpv6PacketTooBig
where U32: IntoBytes,

impl IntoBytes for Icmpv6ParameterProblem
where U32: IntoBytes,

impl IntoBytes for GroupRecordHeader
where u8: IntoBytes, U16: IntoBytes, Ipv4Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for MembershipQueryData
where Ipv4Addr: IntoBytes, u8: IntoBytes, U16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for MembershipReportV3Data
where [u8; 2]: IntoBytes, U16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for HeaderPrefix
where u8: IntoBytes, [u8; 2]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for DscpAndEcn
where u8: IntoBytes,

impl IntoBytes for HeaderPrefix
where u8: IntoBytes, DscpAndEcn: IntoBytes, U16: IntoBytes, [u8; 2]: IntoBytes, Ipv4Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for FixedHeader
where [u8; 4]: IntoBytes, U16: IntoBytes, u8: IntoBytes, Ipv6Addr: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for TcpSackBlock
where U32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for TcpFlowAndSeqNum
where TcpFlowHeader: IntoBytes, U32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for TcpFlowHeader
where U16: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for ErrorStatusCode

impl IntoBytes for MessageType

impl IntoBytes for Elf32Dyn
where u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Elf32FileHeader
where ElfIdent: IntoBytes, u16: IntoBytes, u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Elf32ProgramHeader
where u32: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Elf64Dyn
where u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Elf64FileHeader
where ElfIdent: IntoBytes, u16: IntoBytes, u32: IntoBytes, usize: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Elf64ProgramHeader
where u32: IntoBytes, usize: IntoBytes, u64: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for ElfIdent
where [u8; 4]: IntoBytes, u8: IntoBytes, [u8; 7]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for elf32_sym
where Elf32Word: IntoBytes, Elf32Addr: IntoBytes, u8: IntoBytes, Elf32Half: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for elf64_sym
where Elf64Word: IntoBytes, u8: IntoBytes, Elf64Half: IntoBytes, Elf64Addr: IntoBytes, Elf64Xword: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for EUI48
where [u8; 6]: IntoBytes,

impl IntoBytes for EUI64
where [u8; 8]: IntoBytes,

impl IntoBytes for PacketType

impl IntoBytes for Header
where [u8; 3]: IntoBytes, PacketType: IntoBytes, U32: IntoBytes,

impl IntoBytes for virtgralloc_set_vulkan_mode
where virtgralloc_VulkanMode: IntoBytes, virtgralloc_SetVulkanModeResult: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for BigEndianU128
where [u8; 16]: IntoBytes,

impl IntoBytes for BigEndianU16
where [u8; 2]: IntoBytes,

impl IntoBytes for BigEndianU32
where [u8; 4]: IntoBytes,

impl IntoBytes for BigEndianU64
where [u8; 8]: IntoBytes,

impl IntoBytes for AmpduParams
where u8: IntoBytes,

impl IntoBytes for ApWmmInfo
where u8: IntoBytes,

impl IntoBytes for AselCapability
where u8: IntoBytes,

impl IntoBytes for BitmapControl
where u8: IntoBytes,

impl IntoBytes for BssMaxIdlePeriod
where u16: IntoBytes, IdleOptions: IntoBytes,

impl IntoBytes for ChannelSwitchAnnouncement
where u8: IntoBytes,

impl IntoBytes for ClientWmmInfo
where u8: IntoBytes,

impl IntoBytes for DsssParamSet
where u8: IntoBytes,

impl IntoBytes for EcwMinMax
where u8: IntoBytes,

impl IntoBytes for ExtCapabilitiesOctet1
where u8: IntoBytes,

impl IntoBytes for ExtCapabilitiesOctet2
where u8: IntoBytes,

impl IntoBytes for ExtCapabilitiesOctet3
where u8: IntoBytes,

impl IntoBytes for ExtendedChannelSwitchAnnouncement
where u8: IntoBytes,

impl IntoBytes for Header
where Id: IntoBytes, u8: IntoBytes,

impl IntoBytes for HtCapabilities
where HtCapabilityInfo: IntoBytes, AmpduParams: IntoBytes, SupportedMcsSet: IntoBytes, HtExtCapabilities: IntoBytes, TxBfCapability: IntoBytes, AselCapability: IntoBytes,

impl IntoBytes for HtCapabilityInfo
where u16: IntoBytes,

impl IntoBytes for HtExtCapabilities
where u16: IntoBytes,

impl IntoBytes for HtOpInfo
where [u8; 5]: IntoBytes,

impl IntoBytes for HtOperation
where u8: IntoBytes, HtOpInfo: IntoBytes, SupportedMcsSet: IntoBytes,

impl IntoBytes for Id
where u8: IntoBytes,

impl IntoBytes for IdleOptions
where u8: IntoBytes,

impl IntoBytes for MpmProtocol
where u16: IntoBytes,

impl IntoBytes for PerrDestinationFlags
where u8: IntoBytes,

impl IntoBytes for PerrDestinationHeader
where PerrDestinationFlags: IntoBytes, MacAddr: IntoBytes, u32: IntoBytes,

impl IntoBytes for PerrHeader
where u8: IntoBytes,

impl IntoBytes for PrepFlags
where u8: IntoBytes,

impl IntoBytes for PrepHeader
where PrepFlags: IntoBytes, u8: IntoBytes, MacAddr: IntoBytes, u32: IntoBytes,

impl IntoBytes for PrepTail
where u32: IntoBytes, MacAddr: IntoBytes,

impl IntoBytes for PreqFlags
where u8: IntoBytes,

impl IntoBytes for PreqHeader
where PreqFlags: IntoBytes, u8: IntoBytes, u32: IntoBytes, MacAddr: IntoBytes,

impl IntoBytes for PreqMiddle
where u32: IntoBytes, u8: IntoBytes,

impl IntoBytes for PreqPerTarget
where PreqPerTargetFlags: IntoBytes, MacAddr: IntoBytes, u32: IntoBytes,

impl IntoBytes for PreqPerTargetFlags
where u8: IntoBytes,

impl IntoBytes for RmEnabledCapabilities
where [u8; 5]: IntoBytes,

impl IntoBytes for SecChanOffset
where u8: IntoBytes,

impl IntoBytes for SupportedMcsSet
where u128: IntoBytes,

impl IntoBytes for SupportedRate
where u8: IntoBytes,

impl IntoBytes for TimHeader
where u8: IntoBytes, BitmapControl: IntoBytes,

impl IntoBytes for TransmitPower
where u8: IntoBytes,

impl IntoBytes for TransmitPowerInfo
where u8: IntoBytes,

impl IntoBytes for TxBfCapability
where u32: IntoBytes,

impl IntoBytes for VhtCapabilities
where VhtCapabilitiesInfo: IntoBytes, VhtMcsNssSet: IntoBytes,

impl IntoBytes for VhtCapabilitiesInfo
where u32: IntoBytes,

impl IntoBytes for VhtChannelBandwidth
where u8: IntoBytes,

impl IntoBytes for VhtMcsNssMap
where u16: IntoBytes,

impl IntoBytes for VhtMcsNssSet
where u64: IntoBytes,

impl IntoBytes for VhtOperation
where VhtChannelBandwidth: IntoBytes, u8: IntoBytes, VhtMcsNssMap: IntoBytes,

impl IntoBytes for WideBandwidthChannelSwitch
where VhtChannelBandwidth: IntoBytes, u8: IntoBytes,

impl IntoBytes for WmmAcParams
where WmmAciAifsn: IntoBytes, EcwMinMax: IntoBytes, u16: IntoBytes,

impl IntoBytes for WmmAciAifsn
where u8: IntoBytes,

impl IntoBytes for WmmInfo
where u8: IntoBytes,

impl IntoBytes for WmmParam
where WmmInfo: IntoBytes, u8: IntoBytes, WmmAcParams: IntoBytes,

impl IntoBytes for AttributeHeader
where Id: IntoBytes, BigEndianU16: IntoBytes,

impl IntoBytes for Id
where [u8; 2]: IntoBytes,

impl IntoBytes for WpsState
where u8: IntoBytes,

impl IntoBytes for ActionCategory
where u8: IntoBytes,

impl IntoBytes for ActionHdr
where ActionCategory: IntoBytes,

impl IntoBytes for AddbaReqHdr
where BlockAckAction: IntoBytes, u8: IntoBytes, BlockAckParameters: IntoBytes, u16: IntoBytes, BlockAckStartingSequenceControl: IntoBytes,

impl IntoBytes for AddbaRespHdr
where BlockAckAction: IntoBytes, u8: IntoBytes, StatusCode: IntoBytes, BlockAckParameters: IntoBytes, u16: IntoBytes,

impl IntoBytes for AmsduSubframeHdr
where MacAddr: IntoBytes, BigEndianU16: IntoBytes,

impl IntoBytes for AssocReqHdr
where CapabilityInfo: IntoBytes, u16: IntoBytes,

impl IntoBytes for AssocRespHdr
where CapabilityInfo: IntoBytes, StatusCode: IntoBytes, Aid: IntoBytes,

impl IntoBytes for AuthAlgorithmNumber
where u16: IntoBytes,

impl IntoBytes for AuthHdr
where AuthAlgorithmNumber: IntoBytes, u16: IntoBytes, StatusCode: IntoBytes,

impl IntoBytes for BeaconHdr
where u64: IntoBytes, TimeUnit: IntoBytes, CapabilityInfo: IntoBytes,

impl IntoBytes for BlockAckAction
where u8: IntoBytes,

impl IntoBytes for BlockAckParameters
where u16: IntoBytes,

impl IntoBytes for BlockAckPolicy
where u8: IntoBytes,

impl IntoBytes for BlockAckStartingSequenceControl
where u16: IntoBytes,

impl IntoBytes for CapabilityInfo
where u16: IntoBytes,

impl IntoBytes for DeauthHdr
where ReasonCode: IntoBytes,

impl IntoBytes for DelbaHdr
where BlockAckAction: IntoBytes, DelbaParameters: IntoBytes, ReasonCode: IntoBytes,

impl IntoBytes for DelbaParameters
where u16: IntoBytes,

impl IntoBytes for DisassocHdr
where ReasonCode: IntoBytes,

impl IntoBytes for EthernetIIHdr
where MacAddr: IntoBytes, BigEndianU16: IntoBytes,

impl IntoBytes for FixedDataHdrFields
where FrameControl: IntoBytes, u16: IntoBytes, MacAddr: IntoBytes, SequenceControl: IntoBytes,

impl IntoBytes for FrameControl
where u16: IntoBytes,

impl IntoBytes for HtControl
where u32: IntoBytes,

impl IntoBytes for LlcHdr
where u8: IntoBytes, [u8; 3]: IntoBytes, BigEndianU16: IntoBytes,

impl IntoBytes for MgmtHdr
where FrameControl: IntoBytes, u16: IntoBytes, MacAddr: IntoBytes, SequenceControl: IntoBytes,

impl IntoBytes for ProbeRespHdr
where u64: IntoBytes, TimeUnit: IntoBytes, CapabilityInfo: IntoBytes,

impl IntoBytes for PsPoll
where u16: IntoBytes, Bssid: IntoBytes, MacAddr: IntoBytes,

impl IntoBytes for QosControl
where u16: IntoBytes,

impl IntoBytes for ReasonCode
where u16: IntoBytes,

impl IntoBytes for SequenceControl
where u16: IntoBytes,

impl IntoBytes for SpectrumMgmtAction
where u8: IntoBytes,

impl IntoBytes for StatusCode
where u16: IntoBytes,

impl IntoBytes for Oui
where [u8; 3]: IntoBytes,

impl IntoBytes for TimeUnit
where u16: IntoBytes,

impl IntoBytes for MemoryStall
where zx_duration_mono_t: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for Name
where [u8; 32]: IntoBytes,

impl<T, U> IntoBytes for Duration<T, U>
where zx_duration_t: IntoBytes, PhantomData<(T, U)>: IntoBytes,

impl<T, U> IntoBytes for Instant<T, U>
where zx_time_t: IntoBytes, PhantomData<(T, U)>: IntoBytes,

impl IntoBytes for PadByte
where u8: IntoBytes,

impl IntoBytes for zx_exception_info_t
where zx_koid_t: IntoBytes, zx_excp_type_t: IntoBytes, [PadByte; 4]: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for zx_info_maps_mapping_t
where zx_vm_option_t: IntoBytes, [PadByte; 4]: IntoBytes, zx_koid_t: IntoBytes, u64: IntoBytes, usize: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for zx_info_memory_stall_t
where zx_duration_mono_t: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for zx_info_timer_t
where u32: IntoBytes, zx_clock_t: IntoBytes, zx_time_t: IntoBytes, zx_duration_t: IntoBytes, (): PaddingFree<Self, { _ }>,

impl IntoBytes for zx_info_vmo_t
where zx_koid_t: IntoBytes, [u8; 32]: IntoBytes, u64: IntoBytes, usize: IntoBytes, u32: IntoBytes, [PadByte; 4]: IntoBytes, zx_rights_t: IntoBytes, (): PaddingFree<Self, { _ }>,