We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MultiCompilerLanguage
1 parent 283899f commit 3e04a0eCopy full SHA for 3e04a0e
crates/compilers/src/compilers/multi.rs
@@ -66,6 +66,16 @@ pub enum MultiCompilerLanguage {
66
Vyper(VyperLanguage),
67
}
68
69
+impl MultiCompilerLanguage {
70
+ pub fn is_vyper(&self) -> bool {
71
+ matches!(self, Self::Vyper(_))
72
+ }
73
+
74
+ pub fn is_solc(&self) -> bool {
75
+ matches!(self, Self::Solc(_))
76
77
+}
78
79
impl From<SolcLanguage> for MultiCompilerLanguage {
80
fn from(language: SolcLanguage) -> Self {
81
Self::Solc(language)
0 commit comments