From f3cd0cc8c247c7357fa3f5cbfc3b5322f0619c73 Mon Sep 17 00:00:00 2001 From: Ronno Das Date: Thu, 20 Aug 2026 08:16:44 +0530 Subject: [PATCH] Derive `Copy` for `EitherOrBoth` --- src/either_or_both.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/either_or_both.rs b/src/either_or_both.rs index b39e46265..e161311fe 100644 --- a/src/either_or_both.rs +++ b/src/either_or_both.rs @@ -5,7 +5,7 @@ use crate::EitherOrBoth::*; use either::Either; /// Value that either holds a single A or B, or both. -#[derive(Clone, PartialEq, Eq, Hash, Debug)] +#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] pub enum EitherOrBoth { /// Both values are present. Both(A, B),