pub enum Sum2<A, B> {
A(A),
B(B),
}Expand description
Holds the one alternative of two a value carries.
Variants§
Trait Implementations§
impl<A: Copy, B: Copy> Copy for Sum2<A, B>
impl<A: Eq, B: Eq> Eq for Sum2<A, B>
impl<A: PartialEq, B: PartialEq> StructuralPartialEq for Sum2<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for Sum2<A, B>
impl<A, B> RefUnwindSafe for Sum2<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Sum2<A, B>
impl<A, B> Sync for Sum2<A, B>
impl<A, B> Unpin for Sum2<A, B>
impl<A, B> UnsafeUnpin for Sum2<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Sum2<A, B>where
A: UnwindSafe,
B: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<This> ShapeProgramExt<This> for This
impl<This> ShapeProgramExt<This> for This
Source§fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
Folds a declaration with this interpretation.