mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Merge branch 'main' into module-params
This commit is contained in:
commit
eb68bf943a
159 changed files with 5937 additions and 22739 deletions
|
@ -23,6 +23,16 @@ impl<'a> HeaderType<'a> {
|
|||
HeaderType::Platform { .. } | HeaderType::Package { .. } => &[],
|
||||
}
|
||||
}
|
||||
pub fn to_string(&'a self) -> &str {
|
||||
match self {
|
||||
HeaderType::App { .. } => "app",
|
||||
HeaderType::Hosted { .. } => "hosted",
|
||||
HeaderType::Builtin { .. } => "builtin",
|
||||
HeaderType::Package { .. } => "package",
|
||||
HeaderType::Platform { .. } => "platform",
|
||||
HeaderType::Interface { .. } => "interface",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue