mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Derive Copy
This commit is contained in:
parent
5bf71edf0c
commit
ec40c3aa0e
1 changed files with 1 additions and 3 deletions
|
@ -425,14 +425,12 @@ impl fmt::Debug for ModuleId {
|
|||
/// 4. throw away short names. stash the module id in the can env under the resolved module name
|
||||
/// 5. test:
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub enum PackageQualified<'a, T> {
|
||||
Unqualified(T),
|
||||
Qualified(&'a str, T),
|
||||
}
|
||||
|
||||
impl<'a, T: Copy> Copy for PackageQualified<'a, T> {}
|
||||
|
||||
/// Package-qualified module name
|
||||
pub type PQModuleName<'a> = PackageQualified<'a, ModuleName>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue