Trait changes, and eliminate 'copy'

This commit is contained in:
Keegan McAllister 2013-08-09 13:41:10 -07:00
parent 907d9f23cf
commit ffe60ea027
30 changed files with 111 additions and 100 deletions

View file

@ -392,6 +392,7 @@ pub struct JSNativeHolder {
propertyHooks: *NativePropertyHooks
}
#[deriving(Clone)]
pub enum ConstantVal {
IntVal(i32),
UintVal(u32),
@ -401,6 +402,7 @@ pub enum ConstantVal {
VoidVal
}
#[deriving(Clone)]
pub struct ConstantSpec {
name: *libc::c_char,
value: ConstantVal
@ -853,6 +855,7 @@ impl DerivedWrapper for AbstractNode<ScriptView> {
}
}
#[deriving(ToStr)]
pub enum Error {
FailureUnknown
}