mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Make 'Cell<JS<T>>' traceable.
This commit is contained in:
parent
da703d6a80
commit
bf05e6a9e2
1 changed files with 7 additions and 0 deletions
|
@ -160,3 +160,10 @@ impl<S: Encoder<E>, E> Encodable<S, E> for Traceable<JSVal> {
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
/// for a field which contains DOMType
|
||||
impl<T: Reflectable+Encodable<S, E>, S: Encoder<E>, E> Encodable<S, E> for Cell<JS<T>> {
|
||||
fn encode(&self, s: &mut S) -> Result<(), E> {
|
||||
self.get().encode(s)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue