pub enum Parity<G: KeyPiece, T, U> {
Odd(Odd<G>, T),
Even(Even<G>, U),
}Expand description
The generation of a Slot together with its value. The variant says
whether the generation is odd or even, and so whether the value is the
slot’s T or its U.
Variants§
Odd(Odd<G>, T)
The generation is odd and the value is a T.
Even(Even<G>, U)
The generation is even and the value is a U.
Trait Implementations§
impl<G: Copy + KeyPiece, T: Copy, U: Copy> Copy for Parity<G, T, U>
impl<G: Eq + KeyPiece, T: Eq, U: Eq> Eq for Parity<G, T, U>
impl<G: PartialEq + KeyPiece, T: PartialEq, U: PartialEq> StructuralPartialEq for Parity<G, T, U>
Auto Trait Implementations§
impl<G, T, U> Freeze for Parity<G, T, U>
impl<G, T, U> RefUnwindSafe for Parity<G, T, U>
impl<G, T, U> Send for Parity<G, T, U>
impl<G, T, U> Sync for Parity<G, T, U>
impl<G, T, U> Unpin for Parity<G, T, U>
impl<G, T, U> UnsafeUnpin for Parity<G, T, U>
impl<G, T, U> UnwindSafe for Parity<G, T, U>
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