mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-28 04:01:33 +00:00
Start handling strings
This commit is contained in:
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user