pub enum Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> {
Show 16 variants
A(A),
B(B),
C(C),
D(D),
E(E),
F(F),
G(G),
H(H),
I(I),
J(J),
K(K),
L(L),
M(M),
N(N),
O(O),
P(P),
}Expand description
An unpacked version of Union8.
Variants§
Implementations§
Source§impl<A: ErasablePtr, B: ErasablePtr, C: ErasablePtr, D: ErasablePtr, E: ErasablePtr, F: ErasablePtr, G: ErasablePtr, H: ErasablePtr, I: ErasablePtr, J: ErasablePtr, K: ErasablePtr, L: ErasablePtr, M: ErasablePtr, N: ErasablePtr, O: ErasablePtr, P: ErasablePtr> Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A: ErasablePtr, B: ErasablePtr, C: ErasablePtr, D: ErasablePtr, E: ErasablePtr, F: ErasablePtr, G: ErasablePtr, H: ErasablePtr, I: ErasablePtr, J: ErasablePtr, K: ErasablePtr, L: ErasablePtr, M: ErasablePtr, N: ErasablePtr, O: ErasablePtr, P: ErasablePtr> Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
Sourcepub fn pack(
self,
builder: Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>,
) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
pub fn pack( self, builder: Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
Pack this loose enum into a pointer union.
Sourcepub fn try_pack(
self,
) -> Result<Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>, Self>
pub fn try_pack( self, ) -> Result<Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>, Self>
Pack this loose enum into a pointer union.
Sourcepub unsafe fn pack_unchecked(
self,
) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
pub unsafe fn pack_unchecked( self, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
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.
Trait Implementations§
Source§impl<A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, K: Clone, L: Clone, M: Clone, N: Clone, O: Clone, P: Clone> Clone for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, K: Clone, L: Clone, M: Clone, N: Clone, O: Clone, P: Clone> Clone for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
Source§impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug, H: Debug, I: Debug, J: Debug, K: Debug, L: Debug, M: Debug, N: Debug, O: Debug, P: Debug> Debug for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug, H: Debug, I: Debug, J: Debug, K: Debug, L: Debug, M: Debug, N: Debug, O: Debug, P: Debug> Debug for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
Source§impl<A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K: Hash, L: Hash, M: Hash, N: Hash, O: Hash, P: Hash> Hash for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A: Hash, B: Hash, C: Hash, D: Hash, E: Hash, F: Hash, G: Hash, H: Hash, I: Hash, J: Hash, K: Hash, L: Hash, M: Hash, N: Hash, O: Hash, P: Hash> Hash for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
Source§impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I: PartialEq, J: PartialEq, K: PartialEq, L: PartialEq, M: PartialEq, N: PartialEq, O: PartialEq, P: PartialEq> PartialEq for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I: PartialEq, J: PartialEq, K: PartialEq, L: PartialEq, M: PartialEq, N: PartialEq, O: PartialEq, P: PartialEq> PartialEq for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A: Copy, B: Copy, C: Copy, D: Copy, E: Copy, F: Copy, G: Copy, H: Copy, I: Copy, J: Copy, K: Copy, L: Copy, M: Copy, N: Copy, O: Copy, P: Copy> Copy for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq, J: Eq, K: Eq, L: Eq, M: Eq, N: Eq, O: Eq, P: Eq> Eq for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> StructuralPartialEq for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
Auto Trait Implementations§
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Freeze for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> RefUnwindSafe for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
H: RefUnwindSafe,
I: RefUnwindSafe,
J: RefUnwindSafe,
K: RefUnwindSafe,
L: RefUnwindSafe,
M: RefUnwindSafe,
N: RefUnwindSafe,
O: RefUnwindSafe,
P: RefUnwindSafe,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Send for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Sync for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Unpin for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> UnwindSafe for Enum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
G: UnwindSafe,
H: UnwindSafe,
I: UnwindSafe,
J: UnwindSafe,
K: UnwindSafe,
L: UnwindSafe,
M: UnwindSafe,
N: UnwindSafe,
O: UnwindSafe,
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more