mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
This commit is contained in:
parent
ff8cbff810
commit
95fc29fa0d
255 changed files with 3550 additions and 3362 deletions
|
@ -20,7 +20,7 @@ pub trait TNode<'a, E: TElement<'a>> : Clone + Copy {
|
|||
fn is_document(self) -> bool;
|
||||
fn is_element(self) -> bool;
|
||||
fn as_element(self) -> E;
|
||||
fn match_attr(self, attr: &AttrSelector, test: |&str| -> bool) -> bool;
|
||||
fn match_attr<F>(self, attr: &AttrSelector, test: F) -> bool where F: Fn(&str) -> bool;
|
||||
fn is_html_element_in_html_document(self) -> bool;
|
||||
|
||||
fn has_changed(self) -> bool;
|
||||
|
@ -55,7 +55,7 @@ pub trait TElement<'a> : Copy {
|
|||
// really messy, since there is a `JSRef` and a `RefCell` involved. Maybe
|
||||
// in the future when we have associated types and/or a more convenient
|
||||
// JS GC story... --pcwalton
|
||||
fn each_class(self, callback: |&Atom|);
|
||||
fn each_class<F>(self, callback: F) where F: FnMut(&Atom);
|
||||
}
|
||||
|
||||
pub trait TElementAttributes : Copy {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue