pub trait ZeroCopyType<E: Endian = NativeEndian>: ZeroCopy {
type Builder;
}Available on crate feature
zero-copy only.Expand description
A trait for zero-copy types that defines their preferred builder type.
Required Associated Types§
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<E: Endian> ZeroCopyType<E> for bool
impl<E: Endian> ZeroCopyType<E> for bool
Source§impl<E: Endian> ZeroCopyType<E> for char
impl<E: Endian> ZeroCopyType<E> for char
Source§impl<E: Endian> ZeroCopyType<E> for f32
impl<E: Endian> ZeroCopyType<E> for f32
Source§impl<E: Endian> ZeroCopyType<E> for f64
impl<E: Endian> ZeroCopyType<E> for f64
Source§impl<E: Endian> ZeroCopyType<E> for i8
impl<E: Endian> ZeroCopyType<E> for i8
Source§impl<E: Endian> ZeroCopyType<E> for i16
impl<E: Endian> ZeroCopyType<E> for i16
Source§impl<E: Endian> ZeroCopyType<E> for i32
impl<E: Endian> ZeroCopyType<E> for i32
Source§impl<E: Endian> ZeroCopyType<E> for i64
impl<E: Endian> ZeroCopyType<E> for i64
Source§impl<E: Endian> ZeroCopyType<E> for i128
impl<E: Endian> ZeroCopyType<E> for i128
Source§impl<E: Endian> ZeroCopyType<E> for u8
impl<E: Endian> ZeroCopyType<E> for u8
Source§impl<E: Endian> ZeroCopyType<E> for u16
impl<E: Endian> ZeroCopyType<E> for u16
Source§impl<E: Endian> ZeroCopyType<E> for u32
impl<E: Endian> ZeroCopyType<E> for u32
Source§impl<E: Endian> ZeroCopyType<E> for u64
impl<E: Endian> ZeroCopyType<E> for u64
Source§impl<E: Endian> ZeroCopyType<E> for u128
impl<E: Endian> ZeroCopyType<E> for u128
Source§impl<E: Endian, T, const N: usize> ZeroCopyType<E> for [T; N]where
T: ZeroCopy + ZeroCopyType<E>,
impl<E: Endian, T, const N: usize> ZeroCopyType<E> for [T; N]where
T: ZeroCopy + ZeroCopyType<E>,
Implementors§
Source§impl<E: Endian> ZeroCopyType<E> for ZeroStr<E>
Available on crate feature alloc only.
impl<E: Endian> ZeroCopyType<E> for ZeroStr<E>
Available on crate feature
alloc only.Source§impl<E: Endian, T, const ALIGN: usize> ZeroCopyType<E> for RelativePtr<T, ALIGN, E>where
T: ZeroCopy + ZeroCopyType<E>,
Available on crate feature alloc only.
impl<E: Endian, T, const ALIGN: usize> ZeroCopyType<E> for RelativePtr<T, ALIGN, E>where
T: ZeroCopy + ZeroCopyType<E>,
Available on crate feature
alloc only.type Builder = RelativeBuilder<<T as ZeroCopyType<E>>::Builder, ALIGN>
Source§impl<E: Endian, T, const ALIGN: usize> ZeroCopyType<E> for ZeroSlice<T, ALIGN, E>where
T: ZeroCopy + ZeroCopyType<E>,
Available on crate feature alloc only.
impl<E: Endian, T, const ALIGN: usize> ZeroCopyType<E> for ZeroSlice<T, ALIGN, E>where
T: ZeroCopy + ZeroCopyType<E>,
Available on crate feature
alloc only.type Builder = SliceBuilder<<T as ZeroCopyType<E>>::Builder, ALIGN>
Source§impl<E: Endian, T, const N: usize, const ALIGN: usize> ZeroCopyType<E> for ZeroArray<T, N, ALIGN, E>where
T: ZeroCopy + ZeroCopyType<E>,
Available on crate feature alloc only.
impl<E: Endian, T, const N: usize, const ALIGN: usize> ZeroCopyType<E> for ZeroArray<T, N, ALIGN, E>where
T: ZeroCopy + ZeroCopyType<E>,
Available on crate feature
alloc only.type Builder = ArrayBuilder<<T as ZeroCopyType<E>>::Builder, N, ALIGN>
Source§impl<E: Endian, const CAP: usize> ZeroCopyType<E> for ZeroString<CAP, E>
Available on crate feature alloc only.
impl<E: Endian, const CAP: usize> ZeroCopyType<E> for ZeroString<CAP, E>
Available on crate feature
alloc only.