Start handling strings

This commit is contained in:
Alex Crichton
2017-12-14 21:55:21 -08:00
parent d5897c6e56
commit 1b4f10217c
8 changed files with 330 additions and 24 deletions

View File

@ -11,4 +11,15 @@ pub struct Function {
#[derive(Serialize, Deserialize)]
pub enum Type {
Number,
BorrowedStr,
String,
}
impl Type {
pub fn is_number(&self) -> bool {
match *self {
Type::Number => true,
_ => false,
}
}
}