mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Make 'Cell<Option<JS<T>>>' traceable.
This commit is contained in:
parent
46ead90515
commit
6d9dcd087a
1 changed files with 6 additions and 0 deletions
|
@ -168,6 +168,12 @@ impl<T: Reflectable+Encodable<S, E>, S: Encoder<E>, E> Encodable<S, E> for Cell<
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T: Reflectable+Encodable<S, E>, S: Encoder<E>, E> Encodable<S, E> for Cell<Option<JS<T>>> {
|
||||||
|
fn encode(&self, s: &mut S) -> Result<(), E> {
|
||||||
|
self.get().encode(s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// for a field which contains non-POD type contains DOMType
|
/// for a field which contains non-POD type contains DOMType
|
||||||
impl<T: Reflectable+Encodable<S, E>, S: Encoder<E>, E> Encodable<S, E> for RefCell<Vec<JS<T>>> {
|
impl<T: Reflectable+Encodable<S, E>, S: Encoder<E>, E> Encodable<S, E> for RefCell<Vec<JS<T>>> {
|
||||||
fn encode(&self, s: &mut S) -> Result<(), E> {
|
fn encode(&self, s: &mut S) -> Result<(), E> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue