mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-18 02:50:17 +00:00
Have Either derive Clone and Copy
This commit is contained in:
parent
4139b4ddb1
commit
13bed30411
1 changed files with 3 additions and 1 deletions
|
@ -4,12 +4,14 @@ use bumpalo::Bump;
|
|||
use roc_region::all::{Loc, Position, Region};
|
||||
use Progress::*;
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum Either<First, Second> {
|
||||
First(First),
|
||||
Second(Second),
|
||||
}
|
||||
|
||||
impl<F: Copy, S: Copy> Copy for Either<F, S> {}
|
||||
|
||||
pub type ParseResult<'a, Output, Error> =
|
||||
Result<(Progress, Output, State<'a>), (Progress, Error, State<'a>)>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue