pub enum Enum8<A, B, C, D, E, F, G, H> {
A(A),
B(B),
C(C),
D(D),
E(E),
F(F),
G(G),
H(H),
}
Expand description
An unpacked version of Union4
.
Variants§
Implementations§
source§impl<A: ErasablePtr, B: ErasablePtr, C: ErasablePtr, D: ErasablePtr, E: ErasablePtr, F: ErasablePtr, G: ErasablePtr, H: ErasablePtr> Enum8<A, B, C, D, E, F, G, H>
impl<A: ErasablePtr, B: ErasablePtr, C: ErasablePtr, D: ErasablePtr, E: ErasablePtr, F: ErasablePtr, G: ErasablePtr, H: ErasablePtr> Enum8<A, B, C, D, E, F, G, H>
sourcepub fn pack(
self,
builder: Builder8<A, B, C, D, E, F, G, H>
) -> Union8<A, B, C, D, E, F, G, H>
pub fn pack(
self,
builder: Builder8<A, B, C, D, E, F, G, H>
) -> Union8<A, B, C, D, E, F, G, H>
Pack this loose enum into a pointer union.
sourcepub fn try_pack(self) -> Result<Union8<A, B, C, D, E, F, G, H>, Self>
pub fn try_pack(self) -> Result<Union8<A, B, C, D, E, F, G, H>, Self>
Pack this loose enum into a pointer union.
sourcepub unsafe fn pack_unchecked(self) -> Union8<A, B, C, D, E, F, G, H>
pub unsafe fn pack_unchecked(self) -> Union8<A, B, C, D, E, F, G, H>
Pack this loose enum into a pointer union.
Safety
The pointer packed must be properly aligned. Note that only the actually packed pointer is restricted, not any other pointer type involved in this definition.