diff options
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/util.rs b/src/util.rs index 8ff79c7..242df23 100644 --- a/src/util.rs +++ b/src/util.rs @@ -78,21 +78,3 @@ impl Drop for AnonUnique } } } - -#[derive(Debug)] -pub enum Either<A, B> -{ - A(A), - B(B), -} - -impl<A, B> Either<A, B> -{ - pub fn as_a(&self) -> Option<&A> - { - match self { - Self::A(a) => Some(a), - Self::B(_) => None, - } - } -} |