mirror of
https://github.com/servo/servo.git
synced 2025-10-18 17:29:18 +01:00
Trait changes, and eliminate 'copy'
This commit is contained in:
parent
907d9f23cf
commit
ffe60ea027
30 changed files with 111 additions and 100 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue