feat(interface-types) Use better errors.

The new `errors` module contains structure to represent errors,
instead of using basic strings. The first usage is in the interpreter
itself.
This commit is contained in:
Ivan Enderlin
2020-03-10 15:41:49 +01:00
parent 8bd3345a79
commit 864ac79123
13 changed files with 500 additions and 207 deletions

View File

@ -5,7 +5,7 @@ use crate::interpreter::Instruction;
use std::str;
/// Represents the types supported by WIT.
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Debug, Clone)]
pub enum InterfaceType {
/// A 8-bits signed integer.
S8,