Struct rubble::bytes::Field [−][src]
#[repr(transparent)]pub struct Field<PRIM: FromBytes, T> {
prim: PRIM,
_p: PhantomData<T>,
}
Expand description
A zerocopy-compatible field of type T
, but represented as PRIM
.
Fields
prim: PRIM
_p: PhantomData<T>
Implementations
Trait Implementations
The debug representation is that of T
.
impl<PRIM: FromBytes, T> FromBytes for Field<PRIM, T> where
PRIM: FromBytes,
PhantomData<T>: FromBytes,
impl<PRIM: FromBytes, T> FromBytes for Field<PRIM, T> where
PRIM: FromBytes,
PhantomData<T>: FromBytes,
impl<PRIM: FromBytes, T> Unaligned for Field<PRIM, T> where
PRIM: Unaligned,
PhantomData<T>: Unaligned,
impl<PRIM: FromBytes, T> Unaligned for Field<PRIM, T> where
PRIM: Unaligned,
PhantomData<T>: Unaligned,
Auto Trait Implementations
impl<PRIM, T> RefUnwindSafe for Field<PRIM, T> where
PRIM: RefUnwindSafe,
T: RefUnwindSafe,
impl<PRIM, T> UnwindSafe for Field<PRIM, T> where
PRIM: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more